enable OpenSubdiv Transform Feedback on Intel
Fixed extension check. This feature requires ARB_texture_buffer_object which was subsumed into OpenGL 3.0. Intel driver on Windows doesn't claim to support this extension, but GL version is > 3 so it actually does work.
This commit is contained in:
@@ -66,7 +66,8 @@ int openSubdiv_getAvailableEvaluators(void)
|
|||||||
#endif /* OPENSUBDIV_HAS_OPENCL */
|
#endif /* OPENSUBDIV_HAS_OPENCL */
|
||||||
|
|
||||||
#ifdef OPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK
|
#ifdef OPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK
|
||||||
if (GLEW_ARB_texture_buffer_object) {
|
if (GLEW_VERSION_3_0 || GLEW_ARB_texture_buffer_object) {
|
||||||
|
// TODO(merwin): remove extension check once Blender moves to 3.2 core
|
||||||
flags |= OPENSUBDIV_EVALUATOR_GLSL_TRANSFORM_FEEDBACK;
|
flags |= OPENSUBDIV_EVALUATOR_GLSL_TRANSFORM_FEEDBACK;
|
||||||
}
|
}
|
||||||
#endif /* OPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK */
|
#endif /* OPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK */
|
||||||
|
Reference in New Issue
Block a user