From e7830f32ac4c2996e84ee544be99b176412b9a63 Mon Sep 17 00:00:00 2001 From: smoki Date: Sat, 19 Jan 2013 04:39:53 +0100 Subject: [PATCH 1/1] r200: Fix GL_COLOR_MATERIAL updates Piglit dlist-color-material passed and fixed colors in supertuxkart 0.8 game. Should fix bug: https://bugs.freedesktop.org/show_bug.cgi?id=59492 --- src/mesa/drivers/dri/r200/r200_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r200/r200_state.c b/src/mesa/drivers/dri/r200/r200_state.c index 93ae52a..17ffd2d 100644 --- a/src/mesa/drivers/dri/r200/r200_state.c +++ b/src/mesa/drivers/dri/r200/r200_state.c @@ -1056,6 +1056,8 @@ void r200UpdateMaterial( struct gl_context *ctx ) /* currently material changes cannot trigger a global ambient change, I believe this is correct update_global_ambient( ctx ); */ + + r200ColorMaterial( ctx, 0, 0 ); } /* _NEW_LIGHT @@ -1763,7 +1765,6 @@ static void r200Enable( struct gl_context *ctx, GLenum cap, GLboolean state ) break; case GL_COLOR_MATERIAL: - r200ColorMaterial( ctx, 0, 0 ); r200UpdateMaterial( ctx ); break; -- 1.7.10.4