From 28f984e87f089dca30f18ee7a98b1a101dae6563 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Mon, 22 Jan 2024 17:15:29 +0000 Subject: [PATCH] GS/HW: Don't preload target from other targets after hw clear --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index c40c0007da..a5ebe7aece 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -2504,7 +2504,7 @@ bool GSTextureCache::PreloadTarget(GIFRegTEX0 TEX0, const GSVector2i& size, cons continue; } - if (preserve_target || preload) + if (!hw_clear && (preserve_target || preload)) { const int copy_width = (t->m_texture->GetWidth()) > (dst->m_texture->GetWidth()) ? (dst->m_texture->GetWidth()) : t->m_texture->GetWidth(); const int copy_height = overlapping_pages_height * t->m_scale;