Fix commit 2714754, Start and End calls weren't consistent. Refs #158

This commit is contained in:
baldurk
2015-10-17 14:08:58 +02:00
parent 33347d2e3d
commit 56c5b0f884
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3163,7 +3163,7 @@ HRESULT WrappedID3D11Device::Present(IDXGISwapChain *swap, UINT SyncInterval, UI
// kill any current capture that isn't application defined
if(m_State == WRITING_CAPFRAME && !m_AppControlledCapture)
EndFrameCapture(this, swapdesc.OutputWindow);
RenderDoc::Inst().EndFrameCapture((ID3D11Device *)this, swapdesc.OutputWindow);
if(RenderDoc::Inst().ShouldTriggerCapture(m_FrameCounter) && m_State == WRITING_IDLE)
{
+1 -1
View File
@@ -2263,7 +2263,7 @@ void WrappedOpenGL::SwapBuffers(void *windowHandle)
// kill any current capture that isn't application defined
if(m_State == WRITING_CAPFRAME && !m_AppControlledCapture)
EndFrameCapture(ctxdata.ctx, windowHandle);
RenderDoc::Inst().EndFrameCapture(ctxdata.ctx, windowHandle);
if(RenderDoc::Inst().ShouldTriggerCapture(m_FrameCounter) && m_State == WRITING_IDLE)
{