From c8238aa0ff6c7604157537268ec80fb3285550e7 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 22 Nov 2006 09:34:55 +0000 Subject: [PATCH] Move setting of _NEW_LIGHT to only occur when materials are present. --- src/mesa/tnl/t_vtx_api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.7.4