From 0febee9a8fdf1f9b03d3f2e23e72f8194b3698c7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 4 Mar 2021 14:30:02 +0200 Subject: [PATCH] Use the new append utility function to build GLSL compile errors --- source/glsl/compiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/glsl/compiler.cpp b/source/glsl/compiler.cpp index 803862cb..d5ee6691 100644 --- a/source/glsl/compiler.cpp +++ b/source/glsl/compiler.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "builtin.h" #include "compatibility.h" #include "compiler.h" @@ -165,7 +166,7 @@ string Compiler::get_diagnostics() const string combined; for(list::const_iterator i=module->stages.begin(); i!=module->stages.end(); ++i) for(vector::const_iterator j=i->diagnostics.begin(); j!=i->diagnostics.end(); ++j) - combined += format("%s:%d: %s\n", module->source_map.get_name(j->source), j->line, j->message); + append(combined, "\n", format("%s:%d: %s", module->source_map.get_name(j->source), j->line, j->message)); return combined; } -- 2.43.0