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:
Mike Erwin 2015-11-14 13:34:41 -05:00
parent 175f8e49e7
commit 46478ad2bc

@ -66,7 +66,8 @@ int openSubdiv_getAvailableEvaluators(void)
#endif /* OPENSUBDIV_HAS_OPENCL */
#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;
}
#endif /* OPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK */