]> git.tdb.fi Git - libs/gl.git/commitdiff
Don't generate warnings about internal types with duplicate names
authorMikko Rasa <tdb@tdb.fi>
Sat, 20 Nov 2021 22:06:00 +0000 (00:06 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 20 Nov 2021 22:06:00 +0000 (00:06 +0200)
source/glsl/validate.cpp

index 7d3d20d1c78eb104c85ac8ef511a099b5115ae5e..e9a8bb3b1978279c4dc3a5ec2512326f8ec752bd 100644 (file)
@@ -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)