diff options
author | Brian <[email protected]> | 2007-02-20 15:20:46 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-02-20 15:20:46 -0700 |
commit | 361b60678e7d2c005593c289baf3263a1a461bf5 (patch) | |
tree | 02d6125f32a4645dcd305504334c8c5f16961f8b | |
parent | 243c2dd7469fb3e6af7206b1a6e60bfe6134fb71 (diff) |
forgot to return length in parse_array_len()
-rw-r--r-- | src/mesa/shader/slang/slang_compile.c | 2 |
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 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; } |