diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-01 11:39:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-01 11:39:43 +0300 |
commit | d1c46c7b35cbf97bf5020c369dd9a708f5eac9db (patch) | |
tree | 36306978480f3b893a12ce2ebacff1c89583e42c /source | |
parent | e751ee55269dbfc19a99c439f635cc36be2ed16b (diff) |
Fix out-of-bounds access in recent shader updates
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_simple_shader.c | 2 |
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 { |