Set _NEW_LIGHT when materials are present in display lists also.
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 22 Nov 2006 09:35:19 +0000 (09:35 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 22 Nov 2006 09:35:19 +0000 (09:35 +0000)
src/mesa/tnl/t_save_playback.c

index 9504f0fe680c4662ff0bb237637791e08f7df9b0..426e94372ecbc2bf7dbfdc2d1bd9d0a87ea4b0d7 100644 (file)
@@ -150,6 +150,7 @@ static void _playback_copy_to_current( GLcontext *ctx,
 
    if (node->have_materials) {
       tnl->Driver.NotifyMaterialChange( ctx );
+      ctx->NewState |= _NEW_LIGHT;
    }
 
    /* CurrentExecPrimitive