X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fvisitor.cpp;h=fd25bf342a7ea588525be88079166453474c4e8e;hb=7daccf2582084283a9e5064995f674eef835996e;hp=051d92f6adfc1e48f9117a32797d3004f9759e10;hpb=8799ec430edae1211dcebf9868e5aec58f951dce;p=libs%2Fgl.git diff --git a/source/glsl/visitor.cpp b/source/glsl/visitor.cpp index 051d92f6..fd25bf34 100644 --- a/source/glsl/visitor.cpp +++ b/source/glsl/visitor.cpp @@ -158,7 +158,7 @@ void NodeRemover::visit(Block &block) void NodeRemover::visit(StructDeclaration &strct) { if(to_remove->count(&strct)) - remove_from_map(current_block->types, strct.name, strct); + remove_from_map(stage->types, strct.name, strct); } void NodeRemover::visit(VariableDeclaration &var) @@ -178,9 +178,9 @@ void NodeRemover::visit(InterfaceBlock &iface) { if(to_remove->count(&iface)) { - remove_from_map(current_block->interfaces, iface.name, iface); + remove_from_map(stage->interface_blocks, iface.name, iface); if(!iface.instance_name.empty()) - remove_from_map(current_block->interfaces, 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);