diff options
author | Mike Erwin <significant.bit@gmail.com> | 2015-12-07 02:00:22 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2015-12-07 02:02:07 +0300 |
commit | 8cfcc444c63fc6346f70899d593c3adaf1f4c748 (patch) | |
tree | 19f9abb22b3400acd27a1350baff17e88c976db1 /source/blender/gpu/GPU_extensions.h | |
parent | 1858823d3b9d7488ada8400393cb97efe2468efd (diff) |
OpenGL: new GPU_legacy_support() function
Is current context compatible with legacy GL (version 2.1)?
My earlier approach -- checking for GLEW_ARB_compatibility -- was not
enough.
This should always return true if we set our GL context up properly. It
will return false when we switch to core profile.
Diffstat (limited to 'source/blender/gpu/GPU_extensions.h')
-rw-r--r-- | source/blender/gpu/GPU_extensions.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_extensions.h b/source/blender/gpu/GPU_extensions.h index e07f9025090..a5bcedb5f0e 100644 --- a/source/blender/gpu/GPU_extensions.h +++ b/source/blender/gpu/GPU_extensions.h @@ -59,6 +59,7 @@ typedef struct GPUProgram GPUProgram; void GPU_extensions_disable(void); +bool GPU_legacy_support(void); bool GPU_glsl_support(void); bool GPU_non_power_of_two_support(void); bool GPU_display_list_support(void); |