Go through consistent path to capture. Fixes IsFrameCapturing. Refs #158

This commit is contained in:
baldurk
2015-09-30 21:30:12 +02:00
parent 98d3cae896
commit 271475410b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2985,7 +2985,7 @@ void WrappedID3D11Device::FirstFrame(IDXGISwapChain *swap)
// if we have to capture the first frame, begin capturing immediately
if(m_State == WRITING_IDLE && RenderDoc::Inst().ShouldTriggerCapture(0))
{
StartFrameCapture(this, swapdesc.OutputWindow);
RenderDoc::Inst().StartFrameCapture((ID3D11Device *)this, swapdesc.OutputWindow);
m_AppControlledCapture = false;
}
@@ -3167,7 +3167,7 @@ HRESULT WrappedID3D11Device::Present(IDXGISwapChain *swap, UINT SyncInterval, UI
if(RenderDoc::Inst().ShouldTriggerCapture(m_FrameCounter) && m_State == WRITING_IDLE)
{
StartFrameCapture(this, swapdesc.OutputWindow);
RenderDoc::Inst().StartFrameCapture((ID3D11Device *)this, swapdesc.OutputWindow);
m_AppControlledCapture = false;
}
+1 -1
View File
@@ -2232,7 +2232,7 @@ void WrappedOpenGL::SwapBuffers(void *windowHandle)
if(RenderDoc::Inst().ShouldTriggerCapture(m_FrameCounter) && m_State == WRITING_IDLE)
{
StartFrameCapture(ctxdata.ctx, windowHandle);
RenderDoc::Inst().StartFrameCapture(ctxdata.ctx, windowHandle);
m_AppControlledCapture = false;
}