summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
diff options
context:
space:
mode:
authorTobias <thm.frey@gmail.com>2018-07-12 18:26:27 +0200
committerbunnei <bunneidev@gmail.com>2018-07-12 18:26:27 +0200
commit316b933a31a22dafccc4884a224b202fa1062fbf (patch)
tree67b8166a63090efe643be846e24102721e047ca5 /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
parentMerge pull request #648 from ogniK5377/no-net (diff)
downloadyuzu-316b933a31a22dafccc4884a224b202fa1062fbf.tar
yuzu-316b933a31a22dafccc4884a224b202fa1062fbf.tar.gz
yuzu-316b933a31a22dafccc4884a224b202fa1062fbf.tar.bz2
yuzu-316b933a31a22dafccc4884a224b202fa1062fbf.tar.lz
yuzu-316b933a31a22dafccc4884a224b202fa1062fbf.tar.xz
yuzu-316b933a31a22dafccc4884a224b202fa1062fbf.tar.zst
yuzu-316b933a31a22dafccc4884a224b202fa1062fbf.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index e6f0bbe8f..ec73f08bd 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -126,7 +126,7 @@ EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) {
SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI);
if (render_window == nullptr) {
- LOG_CRITICAL(Frontend, "Failed to create SDL2 window! Exiting...");
+ LOG_CRITICAL(Frontend, "Failed to create SDL2 window! {}", SDL_GetError());
exit(1);
}
@@ -137,12 +137,12 @@ EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) {
gl_context = SDL_GL_CreateContext(render_window);
if (gl_context == nullptr) {
- LOG_CRITICAL(Frontend, "Failed to create SDL2 GL context! Exiting...");
+ LOG_CRITICAL(Frontend, "Failed to create SDL2 GL context! {}", SDL_GetError());
exit(1);
}
if (!gladLoadGLLoader(static_cast<GLADloadproc>(SDL_GL_GetProcAddress))) {
- LOG_CRITICAL(Frontend, "Failed to initialize GL functions! Exiting...");
+ LOG_CRITICAL(Frontend, "Failed to initialize GL functions! {}", SDL_GetError());
exit(1);
}