From: Brian Paul Date: Thu, 10 Nov 2005 16:19:44 +0000 (+0000) Subject: fix popping of GL_SPOT_DIRECTION (bug 5005) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6297799fee30bb3a7e875c22d5f827e902f5ebbc;p=mesa.git fix popping of GL_SPOT_DIRECTION (bug 5005) --- 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 );