From a12f4941e78e1cc0070c5256180a18bb892adcb1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 5 Apr 2021 16:47:07 +0300 Subject: [PATCH] Show label for all interface blocks in GLSL debug output --- source/glsl/debug.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) -- 2.45.2