Fix serialisation of glFramebuffer*OVR where there are no DSA variants

This commit is contained in:
baldurk
2018-09-03 13:48:38 +01:00
parent bcee891ad2
commit e113af8fe9
@@ -1176,6 +1176,18 @@ void WrappedOpenGL::glFramebufferTextureMultiviewOVR(GLenum target, GLenum attac
IsBackgroundCapturing(m_State))
return;
// because there's no DSA variant of the OVR framebuffer functions we must ensure that while
// background capturing the correct framebuffer is bound. Normally we don't serialise
// glBindFramebuffer calls.
if(IsBackgroundCapturing(m_State))
{
USE_SCRATCH_SERIALISER();
SCOPED_SERIALISE_CHUNK(GLChunk::glBindFramebuffer);
Serialise_glBindFramebuffer(ser, target, record->Resource.name);
record->AddChunk(scope.Get());
}
USE_SCRATCH_SERIALISER();
SCOPED_SERIALISE_CHUNK(gl_CurChunk);
Serialise_glFramebufferTextureMultiviewOVR(ser, target, attachment, texture, level,
@@ -1275,6 +1287,18 @@ void WrappedOpenGL::glFramebufferTextureMultisampleMultiviewOVR(GLenum target, G
IsBackgroundCapturing(m_State))
return;
// because there's no DSA variant of the OVR framebuffer functions we must ensure that while
// background capturing the correct framebuffer is bound. Normally we don't serialise
// glBindFramebuffer calls.
if(IsBackgroundCapturing(m_State))
{
USE_SCRATCH_SERIALISER();
SCOPED_SERIALISE_CHUNK(GLChunk::glBindFramebuffer);
Serialise_glBindFramebuffer(ser, target, record->Resource.name);
record->AddChunk(scope.Get());
}
USE_SCRATCH_SERIALISER();
SCOPED_SERIALISE_CHUNK(gl_CurChunk);
Serialise_glFramebufferTextureMultisampleMultiviewOVR(ser, target, attachment, texture, level,