Fix for bug #17722: sun light in the texture viewmode was broken.

This commit is contained in:
2008-10-02 23:04:28 +00:00
parent 60e32f69b9
commit 1ce81854f7

View File

@@ -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);