mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Fix segfault for missing glShaderStorageBlockBinding function on GLES
This commit is contained in:
committed by
Baldur Karlsson
parent
fbcf86cd59
commit
c72d9720d7
@@ -2346,7 +2346,17 @@ static void ForAllProgramUniforms(const GLHookSet &gl, Serialiser *ser, GLuint p
|
||||
{
|
||||
GLuint idx = gl.glGetProgramResourceIndex(progDst, eGL_SHADER_STORAGE_BLOCK, name.c_str());
|
||||
if(idx != GL_INVALID_INDEX)
|
||||
gl.glShaderStorageBlockBinding(progDst, i, bind);
|
||||
{
|
||||
if(gl.glShaderStorageBlockBinding)
|
||||
{
|
||||
gl.glShaderStorageBlockBinding(progDst, i, bind);
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO glShaderStorageBlockBinding is not core GLES
|
||||
RDCERR("glShaderStorageBlockBinding is not supported!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user