Report OpenSubdiv version Blender is compiled against
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user