Fix segfault for missing glShaderStorageBlockBinding function on GLES

This commit is contained in:
Janos Pantos
2017-06-01 14:02:25 +02:00
committed by Baldur Karlsson
parent fbcf86cd59
commit c72d9720d7
+11 -1
View File
@@ -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!");
}
}
}
}
}