[D3D12] ROV: Unbind resolve RT after using

This commit is contained in:
Triang3l
2018-11-01 22:13:45 +03:00
parent fd12302108
commit 5a79f675bd
2 changed files with 6 additions and 0 deletions

View File

@@ -1444,6 +1444,10 @@ bool RenderTargetCache::ResolveCopy(SharedMemory* shared_memory,
command_list->RSSetScissorRects(1, &scissor);
command_list->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
command_list->DrawInstanced(3, 1, 0, 0);
if (command_processor_->IsROVUsedForEDRAM()) {
// Clean up - the ROV path doesn't need render targets bound.
command_list->OMSetRenderTargets(0, nullptr, FALSE, nullptr);
}
// Copy the resolve target to the buffer.