summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-04-26 22:53:42 -0400
committerGravatar GitHub2018-04-26 22:53:42 -0400
commit4f120a9ec0ce7a20d7bb0dc60342c42a60ed8c43 (patch)
tree588b3f4d379ae16461cb0a24d800f7cbc330d577 /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
parentMerge pull request #407 from lioncash/common (diff)
parentfrontends: Move logging macros over to new fmt-capable ones (diff)
downloadyuzu-4f120a9ec0ce7a20d7bb0dc60342c42a60ed8c43.tar.gz
yuzu-4f120a9ec0ce7a20d7bb0dc60342c42a60ed8c43.tar.xz
yuzu-4f120a9ec0ce7a20d7bb0dc60342c42a60ed8c43.zip
Merge pull request #406 from lioncash/frontend
frontends: Move logging macros over to new fmt-capable ones
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2.cpp')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index 36d40a9b5..b6ed0c498 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -84,7 +84,7 @@ EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) {
84 84
85 // Initialize the window 85 // Initialize the window
86 if (SDL_Init(SDL_INIT_VIDEO) < 0) { 86 if (SDL_Init(SDL_INIT_VIDEO) < 0) {
87 LOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting..."); 87 NGLOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting...");
88 exit(1); 88 exit(1);
89 } 89 }
90 90
@@ -107,7 +107,7 @@ EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) {
107 SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); 107 SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI);
108 108
109 if (render_window == nullptr) { 109 if (render_window == nullptr) {
110 LOG_CRITICAL(Frontend, "Failed to create SDL2 window! Exiting..."); 110 NGLOG_CRITICAL(Frontend, "Failed to create SDL2 window! Exiting...");
111 exit(1); 111 exit(1);
112 } 112 }
113 113
@@ -118,12 +118,12 @@ EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) {
118 gl_context = SDL_GL_CreateContext(render_window); 118 gl_context = SDL_GL_CreateContext(render_window);
119 119
120 if (gl_context == nullptr) { 120 if (gl_context == nullptr) {
121 LOG_CRITICAL(Frontend, "Failed to create SDL2 GL context! Exiting..."); 121 NGLOG_CRITICAL(Frontend, "Failed to create SDL2 GL context! Exiting...");
122 exit(1); 122 exit(1);
123 } 123 }
124 124
125 if (!gladLoadGLLoader(static_cast<GLADloadproc>(SDL_GL_GetProcAddress))) { 125 if (!gladLoadGLLoader(static_cast<GLADloadproc>(SDL_GL_GetProcAddress))) {
126 LOG_CRITICAL(Frontend, "Failed to initialize GL functions! Exiting..."); 126 NGLOG_CRITICAL(Frontend, "Failed to initialize GL functions! Exiting...");
127 exit(1); 127 exit(1);
128 } 128 }
129 129