Browse Source

Check for glfw success

tags/v0.4.0
Andrew Belt 7 years ago
parent
commit
1590085520
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/gui.cpp

+ 1
- 1
src/gui.cpp View File

@@ -244,7 +244,7 @@ void guiInit() {
// Set up GLFW // Set up GLFW
glfwSetErrorCallback(errorCallback); glfwSetErrorCallback(errorCallback);
err = glfwInit(); err = glfwInit();
if (err) {
if (err != GLFW_TRUE) {
osdialog_message(OSDIALOG_ERROR, OSDIALOG_OK, "Could not initialize GLFW."); osdialog_message(OSDIALOG_ERROR, OSDIALOG_OK, "Could not initialize GLFW.");
exit(1); exit(1);
} }


Loading…
Cancel
Save