diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2003-12-27 22:06:39 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2003-12-27 22:06:39 +0000 |
commit | 7a57932a025cf786527d31f4951c8a6d0f25aeec (patch) | |
tree | f3f25a837669da0dee9b40fcda473d3fc62019fb | |
parent | eff4abcbd87d59aec62370dbe489d97f926f3638 (diff) |
Don't allow lighting in model coordinates when fog is active,
from radeon_state.c, noticed by Dieter Nuetzel.
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_state.c | 3 |
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: |