Consider a present the same as a copy for fetching output target

This commit is contained in:
baldurk
2018-02-06 00:21:09 +00:00
parent 55ebe38044
commit e75b9f95b0
+2 -1
View File
@@ -87,7 +87,8 @@ bool Following::operator==(const Following &o)
void Following::GetDrawContext(ICaptureContext &ctx, bool &copy, 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();