From 145fcb8a11096f3db31e938d14196cc8ade6aa7b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 21 Nov 2021 00:06:00 +0200 Subject: [PATCH] Don't generate warnings about internal types with duplicate names --- source/glsl/validate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.45.2