mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
fix popping of GL_SPOT_DIRECTION (bug 5005)
This commit is contained in:
parent
db40ebfbb7
commit
6297799fee
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue