From 6297799fee30bb3a7e875c22d5f827e902f5ebbc Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 10 Nov 2005 16:19:44 +0000 Subject: [PATCH] fix popping of GL_SPOT_DIRECTION (bug 5005) --- src/mesa/main/attrib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 6b6247b194a..47103ccfb56 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -960,7 +960,7 @@ _mesa_PopAttrib(void) _mesa_Lightfv( lgt, GL_SPECULAR, l->Specular ); TRANSFORM_POINT( tmp, ctx->ModelviewMatrixStack.Top->inv, l->EyePosition ); _mesa_Lightfv( lgt, GL_POSITION, tmp ); - TRANSFORM_POINT( tmp, ctx->ModelviewMatrixStack.Top->m, l->EyeDirection ); + TRANSFORM_NORMAL( tmp, l->EyeDirection, ctx->ModelviewMatrixStack.Top->m ); _mesa_Lightfv( lgt, GL_SPOT_DIRECTION, tmp ); _mesa_Lightfv( lgt, GL_SPOT_EXPONENT, &l->SpotExponent ); _mesa_Lightfv( lgt, GL_SPOT_CUTOFF, &l->SpotCutoff ); -- 2.30.2