]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/validate.cpp
Change the naming scheme for the interface block map
[libs/gl.git] / source / glsl / validate.cpp
index b313354dc9c54d56688fe7d7b32b24f8328bcbfc..6ce2ee51400df1668f769c2bc4a086cf61c376f3 100644 (file)
@@ -353,7 +353,7 @@ void IdentifierValidator::visit(VariableDeclaration &var)
 
 void IdentifierValidator::visit(InterfaceBlock &iface)
 {
-       string key = iface.interface+iface.block_name;
+       string key = format("%s %s", iface.interface, iface.block_name);
        map<string, InterfaceBlock *>::const_iterator i = interface_blocks.find(key);
        if(i!=interface_blocks.end())
                multiple_definition(format("interface block '%s %s'", iface.interface, iface.block_name), iface, *i->second);