aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200/r200_state.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2003-12-27 22:06:39 +0000
committerKeith Whitwell <[email protected]>2003-12-27 22:06:39 +0000
commit7a57932a025cf786527d31f4951c8a6d0f25aeec (patch)
treef3f25a837669da0dee9b40fcda473d3fc62019fb /src/mesa/drivers/dri/r200/r200_state.c
parenteff4abcbd87d59aec62370dbe489d97f926f3638 (diff)
Don't allow lighting in model coordinates when fog is active,
from radeon_state.c, noticed by Dieter Nuetzel.
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_state.c')
-rw-r--r--src/mesa/drivers/dri/r200/r200_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_state.c b/src/mesa/drivers/dri/r200/r200_state.c
index d07078c59ef..def5d86fbbb 100644
--- a/src/mesa/drivers/dri/r200/r200_state.c
+++ b/src/mesa/drivers/dri/r200/r200_state.c
@@ -1738,6 +1738,9 @@ static void r200Enable( GLcontext *ctx, GLenum cap, GLboolean state )
rmesa->hw.tcl.cmd[TCL_UCP_VERT_BLEND_CTL] &= ~R200_TCL_FOG_MASK;
}
r200UpdateSpecular( ctx ); /* for PK_SPEC */
+ if (rmesa->TclFallback)
+ r200ChooseVertexState( ctx );
+ _mesa_allow_light_in_model( ctx, !state );
break;
case GL_LIGHT0: