From a0a41024b590fa219b48a38c77400e7be677416d Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 29 Dec 2017 17:41:10 +0000 Subject: [PATCH] We're not done capturing a frame until EndFrameCapture returns --- renderdoc/core/core.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/core/core.cpp b/renderdoc/core/core.cpp index de922e2a0..c276d0d9e 100644 --- a/renderdoc/core/core.cpp +++ b/renderdoc/core/core.cpp @@ -504,8 +504,9 @@ bool RenderDoc::EndFrameCapture(void *dev, void *wnd) IFrameCapturer *frameCap = MatchFrameCapturer(dev, wnd); if(frameCap) { + bool ret = frameCap->EndFrameCapture(dev, wnd); m_CapturesActive--; - return frameCap->EndFrameCapture(dev, wnd); + return ret; } return false; }