diff options
Diffstat (limited to 'src/mesa/tnl/t_vb_light.c')
-rw-r--r-- | src/mesa/tnl/t_vb_light.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vb_light.c b/src/mesa/tnl/t_vb_light.c index 86755486343..aedbad4254f 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]; |