Fix invalid operation errors for some glBind* calls

Names starting with reserved gl_ prefix are not accepted by
glBindAttribLocation and glBindFragDataLocation functions.
This commit is contained in:
Janos Pantos
2017-08-11 16:22:27 +02:00
committed by Baldur Karlsson
parent 625b54e233
commit 0d8e1feb16
+4
View File
@@ -2510,6 +2510,10 @@ void SerialiseProgramBindings(const GLHookSet &gl, Serialiser *ser, GLuint prog,
used |= mask;
if(!strncmp("gl_", n.c_str(), 3))
continue; // GL_INVALID_OPERATION if name starts with reserved gl_ prefix (for both
// glBindAttribLocation and glBindFragDataLocation)
if(sigType == 0)
{
gl.glBindAttribLocation(prog, (GLuint)idx, n.c_str());