From: Mikko Rasa Date: Sat, 27 Nov 2021 10:19:53 +0000 (+0200) Subject: Consider arrays to have matching size if both are unsized X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7d145421b050647a4599ac779e634ce2fa60d3ec;p=libs%2Fgl.git Consider arrays to have matching size if both are unsized --- diff --git a/source/glsl/reflect.cpp b/source/glsl/reflect.cpp index a1ffcd3d..21f12d0e 100644 --- a/source/glsl/reflect.cpp +++ b/source/glsl/reflect.cpp @@ -219,6 +219,8 @@ void TypeComparer::visit(VariableDeclaration &var) r_result = false; if(var1->array_size && var.array_size) compare(*var1->array_size, *var.array_size); + else if(!var1->array_size && !var.array_size) + r_result = true; } if(r_result && var1->type_declaration!=var.type_declaration) compare(*var1->type_declaration, *var.type_declaration);