mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-28 18:51:12 +00:00
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:
parent
b79ebd796c
commit
9fb89a2761
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user