Skip to content

Commit

Permalink
More shader debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
thewierdnut committed Aug 11, 2024
1 parent 76eadd9 commit c56aad4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ GLuint Shader::Compile(const char *str, GLenum type)
Logger::LogError(error);
Files::Write(Files::Config() + "/shader_error.txt",
string("Shader type: ") + std::to_string(type) + '\n' +
str + '\n' +
reinterpret_cast<const char *>(glGetString(GL_SHADING_LANGUAGE_VERSION)) + '\n' +
cText + '\n' +
error
);
throw runtime_error("Shader compilation failed.");
Expand Down

0 comments on commit c56aad4

Please sign in to comment.