Show full shader source on compilation failure
This commit is contained in:
parent
07924aa0d5
commit
b6cb3576a5
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ namespace psemek::gfx
|
|||
gl::GetShaderiv(shader, gl::INFO_LOG_LENGTH, &log_len);
|
||||
std::unique_ptr<char[]> log(new char [log_len]);
|
||||
gl::GetShaderInfoLog(shader, log_len, nullptr, log.get());
|
||||
throw std::runtime_error(util::to_string("Shader compilation failed: ", log.get()));
|
||||
throw std::runtime_error(util::to_string("Shader compilation failed: ", log.get(), "\nShader source: \n", source));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue