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 8de464b..34f2e56 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))