r300: Corrected off-by-one error in r300_vertprog.c.
authorOliver McFadden <z3ro.geek@gmail.com>
Fri, 13 Jul 2007 04:58:32 +0000 (04:58 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Fri, 13 Jul 2007 04:58:32 +0000 (04:58 +0000)
src/mesa/drivers/dri/r300/r300_vertprog.c

index d5cae478539aaa96fa697589401a76e6000289cd..60f151c5423a36a4ef62e2907bbd5d61516fcc33 100644 (file)
@@ -455,7 +455,7 @@ static void r300TranslateVertexShader(struct r300_vertex_program *vp,
 
        if (vp->key.OutputsWritten & (1 << VERT_RESULT_BFC0)) {
                vp->outputs[VERT_RESULT_BFC0] = 3;
-               cur_reg = 5;
+               cur_reg = 4;
        }
 
        if (vp->key.OutputsWritten & (1 << VERT_RESULT_BFC1)) {