diff options
author | Mike Erwin <significant.bit@gmail.com> | 2015-11-14 21:34:41 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2015-11-14 21:34:41 +0300 |
commit | 46478ad2bc2f3b6d66fdfec286a32da6f43e34cf (patch) | |
tree | 728f06c31fb629b04db3e6934d827acad2d8f0a0 | |
parent | 175f8e49e7c3d769f1e4cfcad0c7754c088e6c32 (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.
-rw-r--r-- | intern/opensubdiv/opensubdiv_utils_capi.cc | 3 |
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 */ |