From e1ba29ea19fd99d16b63cc34bc2aa1e4a26c5a25 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 15 Jan 2009 07:04:36 -0700 Subject: glsl: move declaration before code --- src/mesa/shader/slang/slang_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/shader') diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index 04fa2e0f93..818b90b7a8 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); -- cgit v1.2.3