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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-12-01 11:39:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-01 11:39:43 +0300
commitd1c46c7b35cbf97bf5020c369dd9a708f5eac9db (patch)
tree36306978480f3b893a12ce2ebacff1c89583e42c /source
parente751ee55269dbfc19a99c439f635cc36be2ed16b (diff)
Fix out-of-bounds access in recent shader updates
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/intern/gpu_simple_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_simple_shader.c b/source/blender/gpu/intern/gpu_simple_shader.c
index 74ca23e8854..ea26d1da675 100644
--- a/source/blender/gpu/intern/gpu_simple_shader.c
+++ b/source/blender/gpu/intern/gpu_simple_shader.c
@@ -303,7 +303,7 @@ void GPU_simple_shader_light_set(int light_num, GPULightData *light)
}
GPU_MATERIAL_STATE.lights_enabled |= light_bit;
- if (light->position[3] == 0.0f)
+ if (position[3] == 0.0f)
GPU_MATERIAL_STATE.lights_directional |= light_bit;
}
else {