From: Mikko Rasa Date: Sat, 9 Apr 2022 16:24:53 +0000 (+0300) Subject: Parse array sizes for interface blocks X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f9244b13a4ae30d134dd7410664c045c9f2c1574;p=libs%2Fgl.git Parse array sizes for interface blocks This fixes the last failing test case. --- diff --git a/source/glsl/parser.cpp b/source/glsl/parser.cpp index 8c10c443..ca1f3156 100644 --- a/source/glsl/parser.cpp +++ b/source/glsl/parser.cpp @@ -851,7 +851,11 @@ RefPtr Parser::parse_interface_block() if(check("[")) { var->array = true; - tokenizer.expect("]"); + if(!check("]")) + { + var->array_size = parse_expression(); + tokenizer.expect("]"); + } } tokenizer.expect(";"); }