Fix glViewer support for GLSL compute

Core-profile request code was incorrect: we need to request GL 4.3 core profile whenever available.

fixes #254
This commit is contained in:
manuelk 2014-01-22 14:23:04 -08:00
parent b79ebd796c
commit 9fb89a2761

View File

@ -1786,7 +1786,12 @@ setGLCoreProfile()
glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
#if not defined(__APPLE__)
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 4);
#ifdef OPENSUBDIV_HAS_GLSL_COMPUTE
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 3);
#else
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2);
#endif
#else
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2);