summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}