From 66f8e848c87ead600d7b2b49b08b5cb418faf351 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 5 Mar 2021 13:23:13 +0200 Subject: [PATCH] Use resolved type names for output --- source/glsl/output.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glsl/output.cpp b/source/glsl/output.cpp index 72af8379..f440fa8c 100644 --- a/source/glsl/output.cpp +++ b/source/glsl/output.cpp @@ -243,7 +243,7 @@ void Formatter::visit(VariableDeclaration &var) } if(!var.precision.empty()) append(format("%s ", var.precision)); - append(format("%s %s", var.type, var.name)); + append(format("%s %s", var.type_declaration->name, var.name)); if(var.array) { append('['); @@ -277,7 +277,7 @@ void Formatter::visit(InterfaceBlock &iface) void Formatter::visit(FunctionDeclaration &func) { - append(format("%s %s(", func.return_type, func.name)); + append(format("%s %s(", func.return_type_declaration->name, func.name)); for(NodeArray::iterator i=func.parameters.begin(); i!=func.parameters.end(); ++i) { if(i!=func.parameters.begin()) -- 2.45.2