From: Mikko Rasa Date: Mon, 5 Apr 2021 13:47:07 +0000 (+0300) Subject: Show label for all interface blocks in GLSL debug output X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a12f4941e78e1cc0070c5256180a18bb892adcb1;p=libs%2Fgl.git Show label for all interface blocks in GLSL debug output --- diff --git a/source/glsl/debug.cpp b/source/glsl/debug.cpp index c02d9147..2be5bce4 100644 --- a/source/glsl/debug.cpp +++ b/source/glsl/debug.cpp @@ -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)