Don't bind GL_QUERY_BUFFER if the extension isn't supported

This commit is contained in:
baldurk
2019-08-30 11:42:25 +01:00
parent 608c283c9b
commit e15a10a0e6
+2 -1
View File
@@ -165,7 +165,8 @@ void GLReplay::InitPostVSBuffers(uint32_t eventId)
if(rs.VAO.name)
drv.glGetIntegerv(eGL_ELEMENT_ARRAY_BUFFER_BINDING, (GLint *)&elArrayBuffer);
drv.glBindBuffer(eGL_QUERY_BUFFER, 0);
if(HasExt[ARB_query_buffer_object])
drv.glBindBuffer(eGL_QUERY_BUFFER, 0);
// reflection structures
ShaderReflection *vsRefl = NULL;