summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-02-20 15:20:46 -0700
committerBrian <brian@yutani.localnet.net>2007-02-20 15:20:46 -0700
commit361b60678e7d2c005593c289baf3263a1a461bf5 (patch)
tree02d6125f32a4645dcd305504334c8c5f16961f8b /src
parent243c2dd7469fb3e6af7206b1a6e60bfe6134fb71 (diff)
forgot to return length in parse_array_len()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index f7aa297bfa..86699b7cdb 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -360,6 +360,8 @@ parse_array_len(slang_parse_ctx * C, slang_output_ctx * O, GLuint * len)
_slang_simplify(&array_size, &space, C->atoms);
result = (array_size.type == SLANG_OPER_LITERAL_INT);
+ *len = (GLint) array_size.literal[0];
+
slang_operation_destruct(&array_size);
return result;
}