From 361b60678e7d2c005593c289baf3263a1a461bf5 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 20 Feb 2007 15:20:46 -0700 Subject: forgot to return length in parse_array_len() --- src/mesa/shader/slang/slang_compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index f7aa297bfa6..86699b7cdb4 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; } -- cgit v1.2.3