summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_save_playback.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-12-09 14:19:41 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-12-09 14:19:41 +0000
commit688193800789d0ad883ca72edf2da392295cf734 (patch)
tree1be098364dde05722ef107809cf07d5b281d5992 /src/mesa/tnl/t_save_playback.c
parenta70fa7129cf8549f8c01b01d5e317a5a07485706 (diff)
Call UpdateMaterials when they have changed
Diffstat (limited to 'src/mesa/tnl/t_save_playback.c')
-rw-r--r--src/mesa/tnl/t_save_playback.c4
1 files changed, 4 insertions, 0 deletions
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) {