From e75b9f95b0d819fad53c2fda0af1e6904b57eac6 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 5 Feb 2018 11:48:27 +0000 Subject: [PATCH] Consider a present the same as a copy for fetching output target --- qrenderdoc/Windows/TextureViewer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/TextureViewer.cpp b/qrenderdoc/Windows/TextureViewer.cpp index 482529c34..b0d7d65fd 100644 --- a/qrenderdoc/Windows/TextureViewer.cpp +++ b/qrenderdoc/Windows/TextureViewer.cpp @@ -87,7 +87,8 @@ bool Following::operator==(const Following &o) void Following::GetDrawContext(ICaptureContext &ctx, bool ©, bool &clear, bool &compute) { const DrawcallDescription *curDraw = ctx.CurDrawcall(); - copy = curDraw != NULL && (curDraw->flags & (DrawFlags::Copy | DrawFlags::Resolve)); + copy = curDraw != NULL && + (curDraw->flags & (DrawFlags::Copy | DrawFlags::Resolve | DrawFlags::Present)); clear = curDraw != NULL && (curDraw->flags & DrawFlags::Clear); compute = curDraw != NULL && (curDraw->flags & DrawFlags::Dispatch) && ctx.CurPipelineState().GetShader(ShaderStage::Compute) != ResourceId();