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:
@@ -295,7 +295,10 @@ const struct OpenSubdiv_TopologyRefinerDescr *openSubdiv_getGLMeshTopologyRefine
|
|||||||
|
|
||||||
int openSubdiv_supportGPUDisplay(void)
|
int openSubdiv_supportGPUDisplay(void)
|
||||||
{
|
{
|
||||||
return GLEW_EXT_geometry_shader4 &&
|
// TODO: simplify extension check once Blender adopts GL 3.2
|
||||||
GLEW_ARB_gpu_shader5 &&
|
return GLEW_VERSION_4_0 || (
|
||||||
GLEW_ARB_uniform_buffer_object;
|
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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user