projects
/
blender.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
512f631
)
OpenSubdiv: Fix error found by PerfectionCat,
author
Antony Riakiotakis <kalast@gmail.com>
Thu, 27 Aug 2015 07:05:58 +0000
(10:05 +0300)
committer
Antony 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
patch
|
blob
|
history
diff --git
a/intern/opensubdiv/opensubdiv_capi.cc
b/intern/opensubdiv/opensubdiv_capi.cc
index 0b05992bea0ee757806884f622ea62d193ca00af..115020c88d8b99b876e8aa1537f67d391cb98792 100644
(file)
--- 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)
{
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;
}
}