diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-03-03 13:34:23 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-03-03 13:34:23 +0300 |
commit | b42a3d24853195150130df513353c034ac528933 (patch) | |
tree | acfd20a730e5586127f2eeb04991f00e469b2b89 /source/blender/gpu | |
parent | f2bc3dd67806e0757a8e952516337b37ee987f19 (diff) |
Another stability commit for legacy users - don't crash when toggling
dyntopo just notify user that their system doesn't support it.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/GPU_extensions.h | 1 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_extensions.h b/source/blender/gpu/GPU_extensions.h index 186db85d31a..228bea14e00 100644 --- a/source/blender/gpu/GPU_extensions.h +++ b/source/blender/gpu/GPU_extensions.h @@ -58,6 +58,7 @@ void GPU_extensions_disable(void); int GPU_glsl_support(void); int GPU_non_power_of_two_support(void); +int GPU_vertex_buffer_support(void); int GPU_display_list_support(void); int GPU_color_depth(void); void GPU_code_generate_glsl_lib(void); diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index c7e89e50b7e..f9bdaad832a 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -263,6 +263,11 @@ int GPU_non_power_of_two_support(void) return GLEW_ARB_texture_non_power_of_two; } +int GPU_vertex_buffer_support(void) +{ + return GLEW_ARB_vertex_buffer_object || GLEW_VERSION_1_5; +} + int GPU_display_list_support(void) { return !GG.dlistsdisabled; |