From 7a57932a025cf786527d31f4951c8a6d0f25aeec Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Sat, 27 Dec 2003 22:06:39 +0000 Subject: [PATCH] Don't allow lighting in model coordinates when fog is active, from radeon_state.c, noticed by Dieter Nuetzel. --- src/mesa/drivers/dri/r200/r200_state.c | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.30.2