mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-10 00:31:00 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user