Improved shader:getWarnings() to return shader compiler warnings as well as shader program linker and usage warnings

This commit is contained in:
Alex Szpakowski
2013-04-06 14:02:24 -03:00
parent 7e658861d7
commit cfe6014b68
2 changed files with 46 additions and 19 deletions
+6
View File
@@ -133,9 +133,15 @@ private:
void sendTexture(const std::string &name, GLuint texture);
// Get any warnings or errors generated only by the shader program object.
std::string getProgramWarnings() const;
// List of all shader code attached to this Shader
ShaderSources shaderSources;
// Shader compiler warning strings for individual shader stages.
std::map<ShaderType, std::string> shaderWarnings;
GLuint program; // volatile
// Uniform location buffer map