From 06ac59281bdad6679fb1941e31e3c4df1c12cede Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 10 Nov 1999 06:29:44 +0000 Subject: fix for colormaterial --- src/mesa/main/enable.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/enable.c') diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index aa662900777..c12013a421a 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1,4 +1,4 @@ -/* $Id: enable.c,v 1.8 1999/11/08 07:36:44 brianp Exp $ */ +/* $Id: enable.c,v 1.9 1999/11/10 06:29:44 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -123,6 +123,8 @@ void gl_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) if (ctx->Light.ColorMaterialEnabled!=state) { ctx->Light.ColorMaterialEnabled = state; ctx->NewState |= NEW_LIGHTING; + if (state) + gl_update_color_material( ctx, ctx->Current.ByteColor ); } break; case GL_CULL_FACE: -- cgit v1.2.3