summaryrefslogtreecommitdiff
path: root/xc/lib/GL
diff options
context:
space:
mode:
authorkeithw <keithw>2003-07-27 04:01:04 +0000
committerkeithw <keithw>2003-07-27 04:01:04 +0000
commit9e5db0837ac992aa3c90f8a5f9db2cc48af26d88 (patch)
tree98ce240e831530cddf6246c34951645491ee40e3 /xc/lib/GL
parentd90ab9ec75776bbf41d24221cfec31a8c2ec371b (diff)
Fix test_gl4.c -- turn off lighting-in-model coords when fog active
Diffstat (limited to 'xc/lib/GL')
-rw-r--r--xc/lib/GL/mesa/src/drv/r200/r200_state.c1
-rw-r--r--xc/lib/GL/mesa/src/drv/radeon/radeon_state.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/xc/lib/GL/mesa/src/drv/r200/r200_state.c b/xc/lib/GL/mesa/src/drv/r200/r200_state.c
index 63628a4c7..9a3cb4bd2 100644
--- a/xc/lib/GL/mesa/src/drv/r200/r200_state.c
+++ b/xc/lib/GL/mesa/src/drv/r200/r200_state.c
@@ -1734,6 +1734,7 @@ 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 */
+ _mesa_allow_light_in_model( ctx, !state );
break;
case GL_LIGHT0:
diff --git a/xc/lib/GL/mesa/src/drv/radeon/radeon_state.c b/xc/lib/GL/mesa/src/drv/radeon/radeon_state.c
index f0e206231..0161df0f9 100644
--- a/xc/lib/GL/mesa/src/drv/radeon/radeon_state.c
+++ b/xc/lib/GL/mesa/src/drv/radeon/radeon_state.c
@@ -1717,6 +1717,7 @@ static void radeonEnable( GLcontext *ctx, GLenum cap, GLboolean state )
radeonUpdateSpecular( ctx ); /* for PK_SPEC */
if (rmesa->TclFallback)
radeonChooseVertexState( ctx );
+ _mesa_allow_light_in_model( ctx, !state );
break;
case GL_LIGHT0: