From 8cfcc444c63fc6346f70899d593c3adaf1f4c748 Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Sun, 6 Dec 2015 18:00:22 -0500 Subject: 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. --- source/blender/gpu/GPU_extensions.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/gpu/GPU_extensions.h') 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); -- cgit v1.2.3