r300: minor fix
authorMaciej Cencora <m.cencora@gmail.com>
Sat, 11 Jul 2009 14:41:52 +0000 (16:41 +0200)
committerMaciej Cencora <m.cencora@gmail.com>
Mon, 13 Jul 2009 17:28:15 +0000 (19:28 +0200)
Split initializations becase the vars are of different type.

Reported-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/r300/r300_vertprog.c

index ea8d25d..703fba4 100644 (file)
@@ -1473,7 +1473,8 @@ static void addArtificialOutputs(GLcontext *ctx, struct gl_program *prog)
        GLuint OutputsAdded, FpReads;
        int i, count;
 
-       OutputsAdded = count = 0;
+       OutputsAdded = 0;
+       count = 0;
        FpReads = r300->selected_fp->Base->InputsRead;
 
        ADD_OUTPUT(FRAG_ATTRIB_COL0, VERT_RESULT_COL0);