summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vtx_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/tnl/t_vtx_api.c')
-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 b766ce2d2ce..77eec8b3b44 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;
}