mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
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:
committed by
Baldur Karlsson
parent
625b54e233
commit
0d8e1feb16
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user