From ff56908e09c0351179478deb19677cf56eec1f64 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 5 Aug 2003 18:55:49 +0000 Subject: Store material attributes in an Attrib[] style array. This is a first step to reviving/rescuing the 'vtx' rework from the old mesa tree. --- src/mesa/tnl/t_vb_light.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mesa/tnl/t_vb_light.c') diff --git a/src/mesa/tnl/t_vb_light.c b/src/mesa/tnl/t_vb_light.c index 8675548634..aedbad4254 100644 --- a/src/mesa/tnl/t_vb_light.c +++ b/src/mesa/tnl/t_vb_light.c @@ -94,6 +94,14 @@ static void import_color_material( GLcontext *ctx, } +static void update_materials( GLcontext *ctx, + const struct gl_material *src, + GLuint bitmask ) +{ + _mesa_copy_materials( &ctx->Light.Material, src, bitmask ); + _mesa_update_material( ctx, bitmask ); +} + /* Tables for all the shading functions. */ static light_func _tnl_light_tab[MAX_LIGHT_FUNC]; -- cgit v1.2.3