summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-11-30 14:41:17 +0100
committerbunnei <bunneidev@gmail.com>2014-11-30 14:41:17 +0100
commit2ad9ad9297d2f83b13667d885084c1a3e6daab3a (patch)
treeb7d6cab919382aeee45d633705a5bd4246a1428e
parentMerge pull request #235 from yuriks/dyncom-map (diff)
parentGLFW: Add an error callback before calling glfwInit() (diff)
downloadyuzu-2ad9ad9297d2f83b13667d885084c1a3e6daab3a.tar
yuzu-2ad9ad9297d2f83b13667d885084c1a3e6daab3a.tar.gz
yuzu-2ad9ad9297d2f83b13667d885084c1a3e6daab3a.tar.bz2
yuzu-2ad9ad9297d2f83b13667d885084c1a3e6daab3a.tar.lz
yuzu-2ad9ad9297d2f83b13667d885084c1a3e6daab3a.tar.xz
yuzu-2ad9ad9297d2f83b13667d885084c1a3e6daab3a.tar.zst
yuzu-2ad9ad9297d2f83b13667d885084c1a3e6daab3a.zip
-rw-r--r--src/citra/emu_window/emu_window_glfw.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/citra/emu_window/emu_window_glfw.cpp b/src/citra/emu_window/emu_window_glfw.cpp
index 8efb39e2e..697bf4693 100644
--- a/src/citra/emu_window/emu_window_glfw.cpp
+++ b/src/citra/emu_window/emu_window_glfw.cpp
@@ -58,9 +58,13 @@ EmuWindow_GLFW::EmuWindow_GLFW() {
ReloadSetKeymaps();
+ glfwSetErrorCallback([](int error, const char *desc){
+ ERROR_LOG(GUI, "GLFW 0x%08x: %s", error, desc);
+ });
+
// Initialize the window
if(glfwInit() != GL_TRUE) {
- printf("Failed to initialize GLFW! Exiting...");
+ ERROR_LOG(GUI, "Failed to initialize GLFW! Exiting...");
exit(1);
}
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
@@ -75,7 +79,7 @@ EmuWindow_GLFW::EmuWindow_GLFW() {
window_title.c_str(), NULL, NULL);
if (m_render_window == NULL) {
- printf("Failed to create GLFW window! Exiting...");
+ ERROR_LOG(GUI, "Failed to create GLFW window! Exiting...");
exit(1);
}