tweak GL extension check for OpenSubdiv drawing

Once we adopt GL 3.2 across Blender, the check will be:

return GLEW_VERSION_4_0 || GLEW_ARB_gpu_shader5;
This commit is contained in:
Mike Erwin 2015-11-14 13:43:39 -05:00
parent 46478ad2bc
commit f34cb5ab5a

@ -295,7 +295,10 @@ const struct OpenSubdiv_TopologyRefinerDescr *openSubdiv_getGLMeshTopologyRefine
int openSubdiv_supportGPUDisplay(void)
{
return GLEW_EXT_geometry_shader4 &&
GLEW_ARB_gpu_shader5 &&
GLEW_ARB_uniform_buffer_object;
// TODO: simplify extension check once Blender adopts GL 3.2
return GLEW_VERSION_4_0 || (
GLEW_EXT_geometry_shader4 && // ARB version core in 3.2
GLEW_ARB_gpu_shader5 && // written against 3.2, core in 4.0
GLEW_ARB_uniform_buffer_object // core in 3.1
);
}