summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Cencora <m.cencora@gmail.com>2009-07-11 16:41:52 +0200
committerMaciej Cencora <m.cencora@gmail.com>2009-07-13 19:28:15 +0200
commitacd33600411102872af579edc4206b61eb51bb65 (patch)
tree570bb648e4cb52eeb83c40ded2ab381732439b03
parent1a5520fcd3842cc3198bff143d2af5c169eebc26 (diff)
r300: minor fix
Split initializations becase the vars are of different type. Reported-by: Nicolai Hähnle <nhaehnle@gmail.com>
-rw-r--r--src/mesa/drivers/dri/r300/r300_vertprog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_vertprog.c b/src/mesa/drivers/dri/r300/r300_vertprog.c
index ea8d25d5a9..703fba4874 100644
--- a/src/mesa/drivers/dri/r300/r300_vertprog.c
+++ b/src/mesa/drivers/dri/r300/r300_vertprog.c
@@ -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);