From 1590085520b040f39d515e97b7fa9e686d37e156 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 11 Oct 2017 09:57:59 -0400 Subject: [PATCH] Check for glfw success --- src/gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.cpp b/src/gui.cpp index dcf71f18..9e4b7050 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -244,7 +244,7 @@ void guiInit() { // Set up GLFW glfwSetErrorCallback(errorCallback); err = glfwInit(); - if (err) { + if (err != GLFW_TRUE) { osdialog_message(OSDIALOG_ERROR, OSDIALOG_OK, "Could not initialize GLFW."); exit(1); }