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-11-14 21:34:41 +0300
committerMike Erwin <significant.bit@gmail.com>2015-11-14 21:34:41 +0300
commit46478ad2bc2f3b6d66fdfec286a32da6f43e34cf (patch)
tree728f06c31fb629b04db3e6934d827acad2d8f0a0 /intern/opensubdiv
parent175f8e49e7c3d769f1e4cfcad0c7754c088e6c32 (diff)
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.
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r--intern/opensubdiv/opensubdiv_utils_capi.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/opensubdiv/opensubdiv_utils_capi.cc b/intern/opensubdiv/opensubdiv_utils_capi.cc
index ea7b3bc6b84..6556b8c3880 100644
--- a/intern/opensubdiv/opensubdiv_utils_capi.cc
+++ b/intern/opensubdiv/opensubdiv_utils_capi.cc
@@ -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 */