From 688193800789d0ad883ca72edf2da392295cf734 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 9 Dec 2003 14:19:41 +0000 Subject: Call UpdateMaterials when they have changed --- src/mesa/tnl/t_save_playback.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/tnl/t_save_playback.c') diff --git a/src/mesa/tnl/t_save_playback.c b/src/mesa/tnl/t_save_playback.c index 083901f079..eaf30a3c18 100644 --- a/src/mesa/tnl/t_save_playback.c +++ b/src/mesa/tnl/t_save_playback.c @@ -149,6 +149,10 @@ static void _playback_copy_to_current( GLcontext *ctx, _mesa_update_color_material(ctx, ctx->Current.Attrib[VERT_ATTRIB_COLOR0]); } + if (node->have_materials) { + tnl->Driver.NotifyMaterialChange( ctx ); + } + /* CurrentExecPrimitive */ if (node->prim_count) { -- cgit v1.2.3