Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2011-12-17 17:02:31 +0400
committerAntony Riakiotakis <kalast@gmail.com>2011-12-17 17:02:31 +0400
commitb8e96e70dc7997226cd06d3179572ab34e9756ad (patch)
tree1af46b7c551839b61da575ec8cef943dcfea1520 /source/blender/gpu/intern
parent7d2fbfeb9f59be3d60ce9370d74440d4490014e4 (diff)
better to generate the library string always because it could lead to null pointer dereferences. I don't have a non-shader system to check so skipping the conditional just to be safe
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r--source/blender/gpu/intern/gpu_extensions.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index 5f8e165ea80..eaa661a9dcf 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -112,9 +112,7 @@ void GPU_extensions_init(void)
if (!GLEW_ARB_vertex_shader) GG.glslsupport = 0;
if (!GLEW_ARB_fragment_shader) GG.glslsupport = 0;
- if(GG.glslsupport){
- GPU_code_generate_glsl_lib();
- }
+ GPU_code_generate_glsl_lib();
glGetIntegerv(GL_RED_BITS, &r);
glGetIntegerv(GL_GREEN_BITS, &g);