Commit e1ba29ea authored by Brian Paul's avatar Brian Paul

glsl: move declaration before code

parent fbf13bcb
......@@ -1471,9 +1471,9 @@ parse_expression(slang_parse_ctx * C, slang_output_ctx * O,
else {
array_constructor = GL_TRUE;
/* parse the array constructor size */
slang_operation array_size;
array_constructor = GL_TRUE;
if (!parse_expression(C, O, &array_size)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment