OpenSubdiv: disable TF on lower GL versions. Fixes T46794

My previous edit to this check was too lax.

OSD's shader for the Transform Feedback evaluator declares itself
#version 410 so disable the feature if user's GL < 4.1.
This commit is contained in:
Mike Erwin 2015-12-01 20:48:08 -05:00
parent a3d774e4c9
commit ffabd037bb

@ -66,8 +66,7 @@ int openSubdiv_getAvailableEvaluators(void)
#endif /* OPENSUBDIV_HAS_OPENCL */
#ifdef OPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK
if (GLEW_VERSION_3_0 || GLEW_ARB_texture_buffer_object) {
// TODO(merwin): remove extension check once Blender moves to 3.2 core
if (GLEW_VERSION_4_1) {
flags |= OPENSUBDIV_EVALUATOR_GLSL_TRANSFORM_FEEDBACK;
}
#endif /* OPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK */