From: Brian Date: Tue, 20 Feb 2007 22:20:46 +0000 (-0700) Subject: forgot to return length in parse_array_len() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=361b60678e7d2c005593c289baf3263a1a461bf5;p=mesa.git forgot to return length in parse_array_len() --- 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; }