-/* $Id: t_context.c,v 1.26 2002/04/19 12:32:14 brianp Exp $ */
+/* $Id: t_context.c,v 1.30 2002/10/29 20:29:01 brianp Exp $ */
/*
* Mesa 3-D graphics library
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Authors:
- * Keith Whitwell <keithw@valinux.com>
+ * Keith Whitwell <keith@tungstengraphics.com>
*/
#include "glheader.h"
+#include "imports.h"
#include "macros.h"
#include "mtypes.h"
-#include "mem.h"
#include "dlist.h"
#include "light.h"
#include "vtxfmt.h"
*/
_tnl_InvalidateState( ctx, ~0 );
tnl->pipeline.run_input_changes = ~0;
+
+ if (ctx->Light.ColorMaterialEnabled) {
+ _mesa_update_color_material( ctx, ctx->Current.Attrib[VERT_ATTRIB_COLOR0] );
+ }
+
}