From: Mikko Rasa Date: Sat, 20 Nov 2021 22:06:00 +0000 (+0200) Subject: Don't generate warnings about internal types with duplicate names X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=145fcb8a11096f3db31e938d14196cc8ade6aa7b;p=libs%2Fgl.git Don't generate warnings about internal types with duplicate names --- diff --git a/source/glsl/validate.cpp b/source/glsl/validate.cpp index 7d3d20d1..e9a8bb3b 100644 --- a/source/glsl/validate.cpp +++ b/source/glsl/validate.cpp @@ -356,7 +356,8 @@ void IdentifierValidator::record_definition(const string &name, Statement &state void IdentifierValidator::visit(TypeDeclaration &type) { - check_definition(type.name, type); + if(type.source!=INTERNAL_SOURCE) + check_definition(type.name, type); } void IdentifierValidator::visit(StructDeclaration &strct)