diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-07 13:16:48 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-07 13:16:48 +0300 |
commit | 5489b40a5ad4294115b6e54460fbdd1826720d7d (patch) | |
tree | 795293cbd730a97980b23e2cfd3c0f474d04c05e /intern/opensubdiv | |
parent | 3fe73c72d63b58863db26feffb608835b0618187 (diff) |
Report OpenSubdiv version Blender is compiled against
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r-- | intern/opensubdiv/opensubdiv_capi.cc | 6 | ||||
-rw-r--r-- | intern/opensubdiv/opensubdiv_capi.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/intern/opensubdiv/opensubdiv_capi.cc b/intern/opensubdiv/opensubdiv_capi.cc index 52ce98fe74b..91803551f12 100644 --- a/intern/opensubdiv/opensubdiv_capi.cc +++ b/intern/opensubdiv/opensubdiv_capi.cc @@ -33,6 +33,7 @@ #include <stdlib.h> #include <GL/glew.h> +#include <opensubdiv/version.h> #include <opensubdiv/osd/glMesh.h> /* CPU Backend */ @@ -381,3 +382,8 @@ int openSubdiv_supportGPUDisplay(void) (GLEW_ARB_texture_buffer_object || GLEW_EXT_texture_buffer_object))); /* also ARB_explicit_attrib_location? */ } + +int openSubdiv_getVersionHex(void) +{ + return OPENSUBDIV_VERSION_NUMBER; +} diff --git a/intern/opensubdiv/opensubdiv_capi.h b/intern/opensubdiv/opensubdiv_capi.h index c3a194813e6..281bd3f010d 100644 --- a/intern/opensubdiv/opensubdiv_capi.h +++ b/intern/opensubdiv/opensubdiv_capi.h @@ -152,6 +152,8 @@ void openSubdiv_init(bool gpu_legacy_support); void openSubdiv_cleanup(void); bool openSubdiv_gpu_legacy_support(void); +int openSubdiv_getVersionHex(void); + #ifdef __cplusplus } #endif |