Skip to content
Snippets Groups Projects
Commit 0952e3cc authored by Philip Trettner's avatar Philip Trettner
Browse files

Merge branch 'feature/suppress-uniform-warnings-for-gl-identifiers' into 'develop'

Suppress warnings for unchanged OpenGL identifiers

See merge request Glow/glow!33
parents f32e8ec9 2fcea5fc
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment