When re-trying a frame capture add context configuration. Closes #1215

* We need this to properly orient FBO 0 for the active context.
This commit is contained in:
baldurk
2018-12-19 17:15:39 +00:00
parent 11fa2294d7
commit 8934da6dc3
+8
View File
@@ -2079,6 +2079,14 @@ bool WrappedOpenGL::EndFrameCapture(void *dev, void *wnd)
AttemptCapture();
BeginCaptureFrame();
// serialise out the context configuration for this current context first
{
USE_SCRATCH_SERIALISER();
SCOPED_SERIALISE_CHUNK(GLChunk::ContextConfiguration);
Serialise_ContextConfiguration(ser, GetCtx().ctx);
GetContextRecord()->AddChunk(scope.Get());
}
}
if(switchctx.ctx != prevctx.ctx)