forked from bartvdbraak/blender
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:
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user