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 9504f0f..426e943 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