OpenSubdiv: Fix error found by PerfectionCat,
authorAntony Riakiotakis <kalast@gmail.com>
Thu, 27 Aug 2015 07:05:58 +0000 (10:05 +0300)
committerAntony Riakiotakis <kalast@gmail.com>
Thu, 27 Aug 2015 07:05:58 +0000 (10:05 +0300)
Use glew, not gl constants to detect presence of extensions.
glProgramParameterEXTi is part of GLEW_EXT_geometry_shader4

intern/opensubdiv/opensubdiv_capi.cc

index 0b05992bea0ee757806884f622ea62d193ca00af..115020c88d8b99b876e8aa1537f67d391cb98792 100644 (file)
@@ -296,8 +296,7 @@ const struct OpenSubdiv_TopologyRefinerDescr *openSubdiv_getGLMeshTopologyRefine
 
 int openSubdiv_supportGPUDisplay(void)
 {
-       return GL_EXT_geometry_shader4 &&
-              GL_ARB_gpu_shader5 &&
-              GL_ARB_uniform_buffer_object &&
-              glProgramParameteriEXT;
+       return GLEW_EXT_geometry_shader4 &&
+              GLEW_ARB_gpu_shader5 &&
+              GLEW_ARB_uniform_buffer_object;
 }