From: Keith Whitwell Date: Wed, 22 Nov 2006 09:34:55 +0000 (+0000) Subject: Move setting of _NEW_LIGHT to only occur when materials are present. X-Git-Tag: 062012170305~20092 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8238aa0ff6c7604157537268ec80fb3285550e7;p=profile%2Fivi%2Fmesa.git Move setting of _NEW_LIGHT to only occur when materials are present. --- diff --git a/src/mesa/tnl/t_vtx_api.c b/src/mesa/tnl/t_vtx_api.c index b766ce2..77eec8b 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; }