mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Improved shader:getWarnings() to return shader compiler warnings as well as shader program linker and usage warnings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user