Commit 2fcea5fc authored by Jonathan Kunstwald's avatar Jonathan Kunstwald Committed by Philip Trettner

Suppress warnings for unchanged OpenGL identifiers

parent f32e8ec9
......@@ -490,6 +490,10 @@ void Program::link(bool saveUniformState)
glGetActiveUniform(mObjectName, GLuint(i), sizeof(uniformName), &length, &size, &type, uniformName);
std::string uniformNameStd = uniformName;
// Skip reserved identifiers
if (uniformNameStd.find("gl_") == 0)
continue;
// Cut down uArray[0] to uArray
auto const bracketPos = uniformNameStd.find('[');
if (bracketPos != std::string::npos)
......
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