mesa: move code after decl
authorbrian <brian@cvp965.(none)>
Sat, 7 Nov 2009 15:18:03 +0000 (08:18 -0700)
committerbrian <brian@cvp965.(none)>
Sat, 7 Nov 2009 15:18:07 +0000 (08:18 -0700)
Fixes bug 24967.

src/mesa/shader/prog_optimize.c

index 94d3dce6ea7360143e804ff09aafb49a35d0c1db..8638754e243e88dc3825edb5ad024182052ad4d5 100644 (file)
@@ -249,8 +249,9 @@ _mesa_remove_dead_code(struct gl_program *prog)
       for (j = 0; j < numSrc; j++) {
          if (inst->SrcReg[j].File == PROGRAM_TEMPORARY) {
             const GLuint index = inst->SrcReg[j].Index;
+            GLuint read_mask;
             ASSERT(index < MAX_PROGRAM_TEMPS);
-           int read_mask = get_src_arg_mask(inst, j);
+           read_mask = get_src_arg_mask(inst, j);
 
             if (inst->SrcReg[j].RelAddr) {
                if (dbg)