Commit 0e454b1d authored by Robert Menzel's avatar Robert Menzel
Browse files

workaround of an older nvidia bug added

parent b451f394
......@@ -118,6 +118,9 @@ SharedLocationMappings ShaderProgram::getAttributeLocations() const
// reserve a string long enought for the longest name:
GLint longestAttributeName;
glGetProgramiv( mObjectName, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &longestAttributeName );
if (longestAttributeName == 0) return locationMap; // work around an old nvidia bug.
char *name = new char[longestAttributeName+1];
// get the name and location of each active attribute:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment