Browse Source

block windows from gl version hell

Alec Jacobson 2 years ago
parent
commit
10002b6cf1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/opengl/glfw/Viewer.cpp

+ 1 - 1
include/igl/opengl/glfw/Viewer.cpp

@@ -184,7 +184,7 @@ namespace glfw
       printf("Failed to load OpenGL and its extensions\n");
       return(-1);
     }
-    #if defined(DEBUG) || defined(_DEBUG)
+    #if !defined(WIN32) && (defined(DEBUG) || defined(_DEBUG))
       printf("OpenGL Version %d.%d loaded\n", GLVersion.major, GLVersion.minor);
       int major, minor, rev;
       major = glfwGetWindowAttrib(window, GLFW_CONTEXT_VERSION_MAJOR);