diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-20 23:59:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-20 23:59:50 +0300 |
commit | 605a2c84903f7e97728cd14d39674c1dd94d539f (patch) | |
tree | 808f0b846fda280f2d7b456e705f942fe28110ab /source/blender/gpu/intern/gpu_extensions.c | |
parent | d0017eb5f2e6ebb9bfbdf2b6081685c998d6b9dc (diff) |
Cleanup: warning, style
Diffstat (limited to 'source/blender/gpu/intern/gpu_extensions.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index 33f0cb655a6..e30eeebf934 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -1727,6 +1727,10 @@ GPUShader *GPU_shader_create_ex(const char *vertexcode, char standard_defines[MAX_DEFINE_LENGTH] = ""; char standard_extensions[MAX_EXT_DEFINE_LENGTH] = ""; +#ifndef WITH_OPENSUBDIV + UNUSED_VARS(flags); +#endif + if (!GLEW_ARB_vertex_shader || !GLEW_ARB_fragment_shader || (geocode && !GPU_geometry_shader_support())) return NULL; |