OpenSubdiv: Fix error found by PerfectionCat,

Use glew, not gl constants to detect presence of extensions.
glProgramParameterEXTi is part of GLEW_EXT_geometry_shader4
This commit is contained in:
Antonis Ryakiotakis 2015-08-27 10:05:58 +03:00
parent 512f631af6
commit a8be746609
1 changed files with 3 additions and 4 deletions

View 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;
}