Move setting of _NEW_LIGHT to only occur when materials are present.

This commit is contained in:
Keith Whitwell
2006-11-22 09:34:55 +00:00
parent 49a3ea8110
commit c8238aa0ff
+1 -2
View File
@@ -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;
}