Commit 131477ee authored by Janis Born's avatar Janis Born

filter out attribute names starting with gl_ in ShaderProgram::getAttributeLocations

parent 76e195eb
......@@ -141,6 +141,10 @@ SharedLocationMappings ShaderProgram::getAttributeLocations() const
GLint attribLocation = glGetAttribLocation( mObjectName, name );
// if the attribute name starts with "gl_", i.e. is a reserved attribute name, ignore it
if(length >= 3 && strncmp(name, "gl_", 3) == 0)
continue;
locationMap->setLocation( std::string(name), (GLuint) attribLocation );
}
......
Markdown is supported
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