GS/Metal: Don't end up with two encoders on readback

This commit is contained in:
Connor McLaughlin 2023-08-06 19:20:48 +10:00 committed by TellowKrinkle
parent 5972f4947d
commit 147a6c81a1
1 changed files with 1 additions and 1 deletions

View File

@ -194,8 +194,8 @@ void GSDownloadTextureMTL::CopyFromTexture(
GetTransferPitch(use_transfer_pitch ? static_cast<u32>(drc.width()) : m_width, PITCH_ALIGNMENT);
GetTransferSize(drc, &copy_offset, &copy_size, &copy_rows);
m_dev->EndRenderPass();
mtlTex->FlushClears();
m_dev->EndRenderPass();
g_perfmon.Put(GSPerfMon::Readbacks, 1);
m_copy_cmdbuffer = MRCRetain(m_dev->GetRenderCmdBuf());