Explorar o código

block windows from gl version hell

Alec Jacobson %!s(int64=2) %!d(string=hai) anos
pai
achega
10002b6cf1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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");
       printf("Failed to load OpenGL and its extensions\n");
       return(-1);
       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);
       printf("OpenGL Version %d.%d loaded\n", GLVersion.major, GLVersion.minor);
       int major, minor, rev;
       int major, minor, rev;
       major = glfwGetWindowAttrib(window, GLFW_CONTEXT_VERSION_MAJOR);
       major = glfwGetWindowAttrib(window, GLFW_CONTEXT_VERSION_MAJOR);