[Bf-blender-cvs] [46478ad] master: enable OpenSubdiv Transform Feedback on Intel
Mike Erwin
noreply at git.blender.org
Sat Nov 14 19:49:44 CET 2015
Commit: 46478ad2bc2f3b6d66fdfec286a32da6f43e34cf
Author: Mike Erwin
Date: Sat Nov 14 13:34:41 2015 -0500
Branches: master
https://developer.blender.org/rB46478ad2bc2f3b6d66fdfec286a32da6f43e34cf
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.
===================================================================
M intern/opensubdiv/opensubdiv_utils_capi.cc
===================================================================
diff --git a/intern/opensubdiv/opensubdiv_utils_capi.cc b/intern/opensubdiv/opensubdiv_utils_capi.cc
index ea7b3bc..6556b8c 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 */
More information about the Bf-blender-cvs
mailing list