summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2008-09-19 19:11:37 +0200
committerMichal Krol <[email protected]>2008-09-19 19:11:37 +0200
commit8701e5f702a0b15d44395268e2422c196d8f4efd (patch)
treedbac14528b299a6650fa41eb681d06493c0654b1 /src
parent0576e837f18ad9925d732f883f4922c907d7bafb (diff)
mesa: Fix compiler error.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/arbprogparse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 5e81477592a..466ae48bef3 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -2604,11 +2604,13 @@ parse_src_reg (GLcontext * ctx, const GLubyte ** inst,
}
if (*File == PROGRAM_STATE_VAR) {
+ enum register_file file;
+
/* If we're referencing the Program->Parameters[] array, check if the
* parameter is really a constant/literal. If so, set File to CONSTANT.
*/
assert(*Index < Program->Base.Parameters->NumParameters);
- enum register_file file = Program->Base.Parameters->Parameters[*Index].Type;
+ file = Program->Base.Parameters->Parameters[*Index].Type;
if (file == PROGRAM_CONSTANT)
*File = PROGRAM_CONSTANT;
}