From 6eb9676604c8395914ac6ad56a5c5bc13c9db33b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 2 May 2014 18:27:45 +0200 Subject: [PATCH] Fix Shader::compile() error output. Because Debug outputs chars as numbers, it displayed the following: compilation of fragment shader321 succeeded ... compilation of vertex shader322 succeeded ... instead of compilation of fragment shader 1 succeeded ... compilation of vertex shader 2 succeeded ... Now I will forever know that ASCII code of space is 32. --- src/Magnum/Shader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Shader.cpp b/src/Magnum/Shader.cpp index 29d938c81..86d4b8722 100644 --- a/src/Magnum/Shader.cpp +++ b/src/Magnum/Shader.cpp @@ -677,9 +677,9 @@ bool Shader::compile(std::initializer_list> shade << " shader"; if(shaders.size() != 1) { #if !defined(CORRADE_TARGET_NACL_NEWLIB) && !defined(CORRADE_TARGET_ANDROID) && !defined(__MINGW32__) - out << ' ' << std::to_string(i); + out << " " << std::to_string(i); #else - out << ' ' << converter.str(); + out << " " << converter.str(); #endif } out << " failed with the following message:\n" @@ -694,9 +694,9 @@ bool Shader::compile(std::initializer_list> shade << " shader"; if(shaders.size() != 1) { #if !defined(CORRADE_TARGET_NACL_NEWLIB) && !defined(CORRADE_TARGET_ANDROID) && !defined(__MINGW32__) - out << ' ' << std::to_string(i); + out << " " << std::to_string(i); #else - out << ' ' << converter.str(); + out << " " << converter.str(); #endif } out << " succeeded with the following message:\n"