]> git.tdb.fi Git - libs/gl.git/commitdiff
Consider arrays to have matching size if both are unsized
authorMikko Rasa <tdb@tdb.fi>
Sat, 27 Nov 2021 10:19:53 +0000 (12:19 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 27 Nov 2021 18:02:06 +0000 (20:02 +0200)
source/glsl/reflect.cpp

index a1ffcd3d449783caf24aa9c79d4c403199972234..21f12d0eb1c57b25491832651d9812aac0beb55b 100644 (file)
@@ -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);