From f9244b13a4ae30d134dd7410664c045c9f2c1574 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 9 Apr 2022 19:24:53 +0300 Subject: [PATCH] Parse array sizes for interface blocks This fixes the last failing test case. --- source/glsl/parser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(";"); } -- 2.43.0