From 147a6c81a18416b3fabe9b5ba30246acffa2aacb Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 6 Aug 2023 19:20:48 +1000 Subject: [PATCH] GS/Metal: Don't end up with two encoders on readback --- pcsx2/GS/Renderers/Metal/GSTextureMTL.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/Metal/GSTextureMTL.mm b/pcsx2/GS/Renderers/Metal/GSTextureMTL.mm index 6f94cbe7a6..98284426f9 100644 --- a/pcsx2/GS/Renderers/Metal/GSTextureMTL.mm +++ b/pcsx2/GS/Renderers/Metal/GSTextureMTL.mm @@ -194,8 +194,8 @@ void GSDownloadTextureMTL::CopyFromTexture( GetTransferPitch(use_transfer_pitch ? static_cast(drc.width()) : m_width, PITCH_ALIGNMENT); GetTransferSize(drc, ©_offset, ©_size, ©_rows); - m_dev->EndRenderPass(); mtlTex->FlushClears(); + m_dev->EndRenderPass(); g_perfmon.Put(GSPerfMon::Readbacks, 1); m_copy_cmdbuffer = MRCRetain(m_dev->GetRenderCmdBuf());