Skip to content
Snippets Groups Projects
Commit 51392f03 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

don't dump shader output to stderr

parent 185db57f
No related branches found
No related tags found
No related merge requests found
Pipeline #3139 failed
......@@ -14,8 +14,6 @@ bool ShaderCache::compileShader(const std::string& fname, GLuint sid) {
return false;
}
std::cerr << "source for " << fname << " is " << source << std::endl;
// upload and compile shader
const auto *src_cstr = (const GLchar *)source.c_str();
glShaderSource(sid, 1, &src_cstr, 0);
......@@ -133,9 +131,9 @@ GLuint ShaderCache::load(const ShaderConfig& config) {
std::cerr << "linking failed" << std::endl;
// get the error
char infoLog[512];
glGetProgramInfoLog(pid, 512, nullptr, infoLog);
std::cerr << infoLog << std::endl;
std::array<char, 512> infoLog;
glGetProgramInfoLog(pid, infoLog.size(), nullptr, infoLog.data());
std::cerr << infoLog.data() << std::endl;
// cleanup
glDeleteProgram( pid );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment