Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-08-27 10:05:58 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-08-27 10:05:58 +0300
commita8be746609adc81c3a93f97e5ecc7e5417471289 (patch)
tree4752ff74f571fa5196b2339258bab43f7381fd3f /intern/opensubdiv/opensubdiv_capi.cc
parent512f631af64398de4062c3fd0bd6f1c26e410437 (diff)
OpenSubdiv: Fix error found by PerfectionCat,
Use glew, not gl constants to detect presence of extensions. glProgramParameterEXTi is part of GLEW_EXT_geometry_shader4
Diffstat (limited to 'intern/opensubdiv/opensubdiv_capi.cc')
-rw-r--r--intern/opensubdiv/opensubdiv_capi.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/intern/opensubdiv/opensubdiv_capi.cc b/intern/opensubdiv/opensubdiv_capi.cc
index 0b05992bea0..115020c88d8 100644
--- a/intern/opensubdiv/opensubdiv_capi.cc
+++ b/intern/opensubdiv/opensubdiv_capi.cc
@@ -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;
}