diff --git a/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp b/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp index 242521c00..8ab8b0d0e 100644 --- a/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp +++ b/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp @@ -1087,6 +1087,7 @@ private: ? D3D12_RESOURCE_STATE_DEPTH_READ : D3D12_RESOURCE_STATE_DEPTH_WRITE; targetCopyParams.srcImageFormat = GetDepthSRVFormat(m_CallbackInfo.targetDesc.Format, 0); + targetCopyParams.depthcopy = true; targetCopyParams.copyFormat = DXGI_FORMAT_R32_TYPELESS; offset += offsetof(struct D3D12PixelHistoryValue, depth); }