Don't allow lighting in model coordinates when fog is active,
authorKeith Whitwell <keith@tungstengraphics.com>
Sat, 27 Dec 2003 22:06:39 +0000 (22:06 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Sat, 27 Dec 2003 22:06:39 +0000 (22:06 +0000)
from radeon_state.c, noticed by Dieter Nuetzel.

src/mesa/drivers/dri/r200/r200_state.c

index d07078c59efe4d44c2470f93c5ea43dd1a5ef51b..def5d86fbbbcc99bc28389ae1bde34ee0eef1712 100644 (file)
@@ -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: