aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-01-06 19:18:13 +0000
committerJosé Fonseca <[email protected]>2009-01-06 19:18:13 +0000
commit3740a06e28f4cd09e2a3dce2da60320aa9304df1 (patch)
tree7ce0dbae1e7f3b640e89847bb324b38ed22c927a /src/mesa
parent5da0401398239a2b445e11945144d073d77f0f03 (diff)
mesa: Move var declaration to top of scope.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/slang/slang_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index d8aefd64950..b8044b10600 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -1470,9 +1470,9 @@ parse_expression(slang_parse_ctx * C, slang_output_ctx * O,
RETURN0;
}
else {
+ slang_operation array_size;
array_constructor = GL_TRUE;
/* parse the array constructor size */
- slang_operation array_size;
slang_operation_construct(&array_size);
if (!parse_expression(C, O, &array_size)) {
slang_operation_destruct(&array_size);