diff options
author | Mike Erwin <significant.bit@gmail.com> | 2015-12-07 02:47:58 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2015-12-07 02:47:58 +0300 |
commit | a048d5f945be217c0c3e90cb716bf6bb7c267097 (patch) | |
tree | 53958fec97a9d842f77247f0461ee7ab82a00640 /intern/opensubdiv/opensubdiv_capi.h | |
parent | 50df05c35cca2f26f613f3d44dd3175852da2f78 (diff) |
OpenSubdiv: refine OpenGL version & extension checks
Use new GPU_legacy_support() function.
Determine GLSL version once instead of per shader.
For Texture Buffers, allow ARB or EXT version of the extension. Either
one will do.
Diffstat (limited to 'intern/opensubdiv/opensubdiv_capi.h')
-rw-r--r-- | intern/opensubdiv/opensubdiv_capi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/opensubdiv/opensubdiv_capi.h b/intern/opensubdiv/opensubdiv_capi.h index 8010c39647d..9d1c1b3795c 100644 --- a/intern/opensubdiv/opensubdiv_capi.h +++ b/intern/opensubdiv/opensubdiv_capi.h @@ -144,6 +144,8 @@ int openSubdiv_getAvailableEvaluators(void); void openSubdiv_init(void); void openSubdiv_cleanup(void); +extern bool GPU_legacy_support(void); + #ifdef __cplusplus } #endif |