Fix copy-paste error, use the right interface for getting name

This commit is contained in:
baldurk
2015-01-26 19:48:00 +00:00
parent 00226df891
commit 4c44fc67cb
+1 -1
View File
@@ -1153,7 +1153,7 @@ static void ForAllProgramUniforms(const GLHookSet &gl, Serialiser *ser, GLuint p
gl.glGetProgramResourceiv(progSrc, eGL_SHADER_STORAGE_BLOCK, i, 1, &prop, 1, NULL, (GLint *)&bind);
char n[1024] = {0};
gl.glGetProgramResourceName(progSrc, eGL_UNIFORM_BLOCK, i, 1023, NULL, n);
gl.glGetProgramResourceName(progSrc, eGL_SHADER_STORAGE_BLOCK, i, 1023, NULL, n);
name = n;
}