summaryrefslogtreecommitdiff
path: root/src/mesa/main/enable.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>1999-11-10 06:29:44 +0000
committerKeith Whitwell <keith@tungstengraphics.com>1999-11-10 06:29:44 +0000
commit06ac59281bdad6679fb1941e31e3c4df1c12cede (patch)
tree1bc99dd6944185937c5f7f5f6a83eb9a0a57d25c /src/mesa/main/enable.c
parent6adfc6bd9e4923586df770a8f53b65f8ed2e4597 (diff)
fix for colormaterial
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r--src/mesa/main/enable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index aa66290077..c12013a421 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: