shader better logging

This commit is contained in:
2023-06-03 16:30:32 +02:00
parent a2d8984199
commit ca268781fd

View File

@@ -122,6 +122,12 @@ unsigned int ShaderProgram::LoadShader(const std::string& source, GLenum type) {
utils::LOGE("Could not compile shader !"); utils::LOGE("Could not compile shader !");
utils::LOGE(shaderError.data()); utils::LOGE(shaderError.data());
utils::LOGD(utils::format("\nShader source : \n"
"------------------------------------------------------------------------------------------------------------------------------------\n"
"%s\n"
"------------------------------------------------------------------------------------------------------------------------------------\n"
, source.c_str()));
} }
return shaderID; return shaderID;
} }