diff options
author | brian <brian@cvp965.(none)> | 2009-11-07 08:18:03 -0700 |
---|---|---|
committer | brian <brian@cvp965.(none)> | 2009-11-07 08:18:07 -0700 |
commit | 18768393d19dedee7d4282e84905bb396dd30960 (patch) | |
tree | c1c5299b93c3cd0dbdfe5b22020991acf40c4233 /src/mesa | |
parent | 44cb5b5c663da4d218448cfd2386b431de35c8d2 (diff) | |
download | external_mesa3d-18768393d19dedee7d4282e84905bb396dd30960.zip external_mesa3d-18768393d19dedee7d4282e84905bb396dd30960.tar.gz external_mesa3d-18768393d19dedee7d4282e84905bb396dd30960.tar.bz2 |
mesa: move code after decl
Fixes bug 24967.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/prog_optimize.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_optimize.c b/src/mesa/shader/prog_optimize.c index 94d3dce..8638754 100644 --- a/src/mesa/shader/prog_optimize.c +++ b/src/mesa/shader/prog_optimize.c @@ -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) |