]> git.tdb.fi Git - libs/gl.git/commitdiff
Show label for all interface blocks in GLSL debug output
authorMikko Rasa <tdb@tdb.fi>
Mon, 5 Apr 2021 13:47:07 +0000 (16:47 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 5 Apr 2021 13:47:07 +0000 (16:47 +0300)
source/glsl/debug.cpp

index c02d914720a35707d2e40d167d31f0538f7ec901..2be5bce4ee2a97d5a31408af182c19c3571c0701 100644 (file)
@@ -373,10 +373,7 @@ void DumpTree::visit(VariableDeclaration &var)
 
 void DumpTree::visit(InterfaceBlock &iface)
 {
-       string head;
-       if(!iface.instance_name.empty())
-               head += format("%%%d ", get_label(iface));
-       head += format("%s %s", iface.interface, iface.block_name);
+       string head = format("%%%d %s %s", get_label(iface), iface.interface, iface.block_name);
        if(!iface.instance_name.empty())
                head += format(" %s", iface.instance_name);
        if(iface.array)