X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fvisitor.cpp;h=3e480484c33dd6e12ad1ac8bad61801ba01b94c4;hp=808bcfa52dfc3757e70ea16ba4ec1fe451b75fe8;hb=3773733011653d67e47768cf031e95f8f68cf714;hpb=180698dbb41d312128c496721f1207c6688fe350 diff --git a/source/glsl/visitor.cpp b/source/glsl/visitor.cpp index 808bcfa5..3e480484 100644 --- a/source/glsl/visitor.cpp +++ b/source/glsl/visitor.cpp @@ -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);