aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-01-15 07:04:36 -0700
committerBrian Paul <[email protected]>2009-01-15 07:05:30 -0700
commite1ba29ea19fd99d16b63cc34bc2aa1e4a26c5a25 (patch)
tree8cde3311f52ecc56e1608e9ee5d3f8bc258a0cf8 /src/mesa
parentfbf13bcb8aeeeb70475d9bd8a0d0640936d27047 (diff)
glsl: move declaration before code
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 04fa2e0f931..818b90b7a86 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -1471,9 +1471,9 @@ parse_expression(slang_parse_ctx * C, slang_output_ctx * O,
RETURN0;
}
else {
- array_constructor = GL_TRUE;
/* parse the array constructor size */
slang_operation array_size;
+ array_constructor = GL_TRUE;
slang_operation_construct(&array_size);
if (!parse_expression(C, O, &array_size)) {
slang_operation_destruct(&array_size);