diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-10-03 03:04:28 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-10-03 03:04:28 +0400 |
commit | 1ce81854f79e3d4af1056510041250b2b33c5f1f (patch) | |
tree | 4d51bf3ff3a9a5b7706d60e3a6d1f743959b343e /source | |
parent | 60e32f69b922df783ce2c273daf13b347862c6cb (diff) |
Fix for bug #17722: sun light in the texture viewmode was broken.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 700dd6dedb2..85a1a059b75 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -1046,7 +1046,7 @@ int GPU_scene_object_lights(Scene *scene, Object *ob, int lay, float viewmat[][4 if(la->type==LA_SUN) { /* sun lamp */ - VECCOPY(position, base->object->obmat[2]); + VECCOPY(direction, base->object->obmat[2]); direction[3]= 0.0; glLightfv(GL_LIGHT0+count, GL_POSITION, direction); |