forgot to return length in parse_array_len()
authorBrian <brian@yutani.localnet.net>
Tue, 20 Feb 2007 22:20:46 +0000 (15:20 -0700)
committerBrian <brian@yutani.localnet.net>
Tue, 20 Feb 2007 22:20:46 +0000 (15:20 -0700)
src/mesa/shader/slang/slang_compile.c

index f7aa297bfa6f075801a634f32127049fdf2055a3..86699b7cdb4505569839cfd242b0bdff2499ac14 100644 (file)
@@ -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;
 }