Browse Source

Print non-error shader compilation/linking messages to Warning output.

Instead of schizophrenic Debug/Error.
pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
4be1c5e15c
  1. 2
      src/Magnum/AbstractShaderProgram.cpp
  2. 2
      src/Magnum/Shader.cpp

2
src/Magnum/AbstractShaderProgram.cpp

@ -301,7 +301,7 @@ bool AbstractShaderProgram::link(std::initializer_list<std::reference_wrapper<Ab
/* Or just warnings, if any */
} else if(!message.empty()) {
Debug out;
Warning out;
out.setFlag(Debug::NewLineAtTheEnd, false);
out.setFlag(Debug::SpaceAfterEachValue, false);
out << "AbstractShaderProgram::link(): linking";

2
src/Magnum/Shader.cpp

@ -675,7 +675,7 @@ bool Shader::compile(std::initializer_list<std::reference_wrapper<Shader>> shade
/* Or just warnings, if any */
} else if(!message.empty()) {
Error out;
Warning out;
out.setFlag(Debug::NewLineAtTheEnd, false);
out.setFlag(Debug::SpaceAfterEachValue, false);
out << "Shader::compile(): compilation of " << shaderName(shader._type)

Loading…
Cancel
Save