summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-11-22 09:34:55 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-11-22 09:34:55 +0000
commitc8238aa0ff6c7604157537268ec80fb3285550e7 (patch)
tree6e4b64bbdc968b51d412755a626eb780f852aa0b /src
parent49a3ea81108cf776d8f61844d4f49b6b7993a25f (diff)
Move setting of _NEW_LIGHT to only occur when materials are present.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/tnl/t_vtx_api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_vtx_api.c b/src/mesa/tnl/t_vtx_api.c
index b766ce2d2c..77eec8b3b4 100644
--- a/src/mesa/tnl/t_vtx_api.c
+++ b/src/mesa/tnl/t_vtx_api.c
@@ -171,11 +171,10 @@ static void _tnl_copy_to_current( GLcontext *ctx )
if (tnl->vtx.have_materials) {
tnl->Driver.NotifyMaterialChange( ctx );
+ ctx->NewState |= _NEW_LIGHT;
}
ctx->Driver.NeedFlush &= ~FLUSH_UPDATE_CURRENT;
-
- ctx->NewState |= _NEW_LIGHT;
}