GS: D3D11 Download texture use rect

This commit is contained in:
refractionpcsx2 2021-12-10 11:06:36 +00:00
parent ebe8592a8d
commit c277ee1d34
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ bool GSDevice11::DownloadTexture(GSTexture* src, const GSVector4i& rect, GSTextu
m_download_tex.reset(static_cast<GSTexture11*>(CreateOffscreen(rect.width(), rect.height(), src->GetFormat()))); m_download_tex.reset(static_cast<GSTexture11*>(CreateOffscreen(rect.width(), rect.height(), src->GetFormat())));
if (!m_download_tex) if (!m_download_tex)
return false; return false;
m_ctx->CopyResource(*m_download_tex, *static_cast<GSTexture11*>(src)); CopyRect(src, m_download_tex.get(), rect);
return m_download_tex->Map(out_map); return m_download_tex->Map(out_map);
} }