Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2015-12-02 04:48:08 +0300
committerMike Erwin <significant.bit@gmail.com>2015-12-07 02:02:06 +0300
commitffabd037bbdd807c3b2ff179312a3cc2b379d2a9 (patch)
tree074f696735cc67cf3bef53276f71bfbdd78e3666 /intern/opensubdiv
parenta3d774e4c94868c747230a200e0a41e371f547bd (diff)
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.
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r--intern/opensubdiv/opensubdiv_utils_capi.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/opensubdiv/opensubdiv_utils_capi.cc b/intern/opensubdiv/opensubdiv_utils_capi.cc
index aac1995bdfa..c993e347587 100644
--- a/intern/opensubdiv/opensubdiv_utils_capi.cc
+++ b/intern/opensubdiv/opensubdiv_utils_capi.cc
@@ -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 */