replace Current.Color with Current.Attrib[VERT_ATTRIB_COLOR0]
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 21 Aug 2002 13:05:37 +0000 (13:05 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 21 Aug 2002 13:05:37 +0000 (13:05 +0000)
src/mesa/tnl/t_context.c

index 676eb4736e3f017d02f3a8a66ee147c11f1f24a0..2aa72c7aeeaf72546f3354f7428ea3f7c2d7aa9c 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: t_context.c,v 1.27 2002/08/21 10:39:59 keithw Exp $ */
+/* $Id: t_context.c,v 1.28 2002/08/21 13:05:37 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -196,7 +196,7 @@ _tnl_wakeup_exec( GLcontext *ctx )
    tnl->pipeline.run_input_changes = ~0;
 
    if (ctx->Light.ColorMaterialEnabled) {
-      _mesa_update_color_material( ctx, ctx->Current.Color );
+      _mesa_update_color_material( ctx, ctx->Current.Attrib[VERT_ATTRIB_COLOR0] );
    }
 
 }