Fix typo causing secondary color not to work properly.
authorAapo Tahkola <aet@rasterburn.org>
Fri, 18 Nov 2005 18:05:19 +0000 (18:05 +0000)
committerAapo Tahkola <aet@rasterburn.org>
Fri, 18 Nov 2005 18:05:19 +0000 (18:05 +0000)
src/mesa/tnl/t_vp_build.c

index 0f1f303be28ab87d815cb14f1d08f1cf0fbcff87..598930afb04ccc2aa872e30660688e8452114470 100644 (file)
@@ -1359,7 +1359,7 @@ static void build_tnl_program( struct tnl_program *p )
            emit_passthrough(p, VERT_ATTRIB_COLOR0, VERT_RESULT_COL0);
 
         if (p->state->fragprog_inputs_read & FRAG_BIT_COL1)
-           emit_passthrough(p, VERT_ATTRIB_COLOR0, VERT_RESULT_COL1);
+           emit_passthrough(p, VERT_ATTRIB_COLOR1, VERT_RESULT_COL1);
       }
    }