From e496b991b512299f92dd3f9012df9f77d9900b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 4 Nov 2019 15:07:42 +0100 Subject: [PATCH] GL: properly prefix an error message. --- src/Magnum/GL/Shader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/GL/Shader.cpp b/src/Magnum/GL/Shader.cpp index eb85958f5..994037500 100644 --- a/src/Magnum/GL/Shader.cpp +++ b/src/Magnum/GL/Shader.cpp @@ -795,14 +795,14 @@ bool Shader::compile(std::initializer_list> shader /* Show error log */ if(!success) { Error out{Debug::Flag::NoNewlineAtTheEnd}; - out << "Shader::compile(): compilation of" << shaderName(shader._type) << "shader"; + out << "GL::Shader::compile(): compilation of" << shaderName(shader._type) << "shader"; if(shaders.size() != 1) out << i; out << "failed with the following message:" << Debug::newline << message; /* Or just warnings, if any */ } else if(!message.empty() && !Implementation::isShaderCompilationLogEmpty(message)) { Warning out{Debug::Flag::NoNewlineAtTheEnd}; - out << "Shader::compile(): compilation of" << shaderName(shader._type) << "shader"; + out << "GL::Shader::compile(): compilation of" << shaderName(shader._type) << "shader"; if(shaders.size() != 1) out << i; out << "succeeded with the following message:" << Debug::newline << message; }