r300: Oops, made a mistake on commit fb4e071beda6e3b9e68a21bbc7649b6c4733c485.
authorOliver McFadden <z3ro.geek@gmail.com>
Wed, 18 Jul 2007 02:59:08 +0000 (02:59 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Wed, 18 Jul 2007 02:59:08 +0000 (02:59 +0000)
src/mesa/drivers/dri/r300/r300_vertprog.c

index c6b4fc60249eeccf646cf434cafb0d8cdb8d9ea0..7d4e8c95112b1e0ce5410f139cbaafb37ed51923 100644 (file)
@@ -1083,13 +1083,13 @@ static void t_inputs_outputs(struct r300_vertex_program *vp)
        if (vp->key.OutputsWritten & (1 << VERT_RESULT_BFC0)) {
                vp->outputs[VERT_RESULT_BFC0] =
                    vp->outputs[VERT_RESULT_COL0] + 2;
-               cur_reg = vp->outputs[VERT_RESULT_BFC0] + 1;
+               cur_reg = vp->outputs[VERT_RESULT_BFC0] + 2;
        }
 
        if (vp->key.OutputsWritten & (1 << VERT_RESULT_BFC1)) {
                vp->outputs[VERT_RESULT_BFC1] =
                    vp->outputs[VERT_RESULT_COL0] + 3;
-               cur_reg = vp->outputs[VERT_RESULT_BFC1] + 2;
+               cur_reg = vp->outputs[VERT_RESULT_BFC1] + 1;
        }
 #if 0
        if (vp->key.OutputsWritten & (1 << VERT_RESULT_FOGC)) {