rs480: fix secondary color for real this time
authorAapo Tahkola <aapo@aapo-desktop.(none)>
Sun, 6 May 2007 16:25:45 +0000 (19:25 +0300)
committerAapo Tahkola <aapo@aapo-desktop.(none)>
Sun, 6 May 2007 16:25:45 +0000 (19:25 +0300)
src/mesa/drivers/dri/r300/r300_maos.c

index 8de464bcd810b1017ff2725aa6986a0695a3c0d9..34f2e569e9230b94bee1ca3b3527dbcd92104b76 100644 (file)
@@ -454,7 +454,7 @@ int r300EmitArrays(GLcontext *ctx)
                                inputs[VERT_ATTRIB_COLOR0] = 2;
                        
                        if (InputsRead & (1 << VERT_ATTRIB_COLOR1))
-                               inputs[VERT_ATTRIB_COLOR0] = 3;
+                               inputs[VERT_ATTRIB_COLOR1] = 3;
                        
                        for (i = VERT_ATTRIB_TEX0; i <= VERT_ATTRIB_TEX7; i++)
                                if (InputsRead & (1 << i))