diff options
Diffstat (limited to 'src')
-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; } |