]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/visitor.cpp
Change the naming scheme for the interface block map
[libs/gl.git] / source / glsl / visitor.cpp
index 808bcfa52dfc3757e70ea16ba4ec1fe451b75fe8..3e480484c33dd6e12ad1ac8bad61801ba01b94c4 100644 (file)
@@ -193,9 +193,9 @@ void NodeRemover::visit(InterfaceBlock &iface)
 {
        if(to_remove->count(&iface))
        {
-               remove_from_map(stage->interface_blocks, iface.interface+iface.block_name, iface);
+               remove_from_map(stage->interface_blocks, format("%s %s", iface.interface, iface.block_name), iface);
                if(!iface.instance_name.empty())
-                       remove_from_map(stage->interface_blocks, "_"+iface.instance_name, iface);
+                       remove_from_map(stage->interface_blocks, iface.instance_name, iface);
        }
        SetFlag set_recursive(recursive_remove, recursive_remove || to_remove->count(&iface));
        TraversingVisitor::visit(iface);