GS/HW: Don't preload target from other targets after hw clear

This commit is contained in:
refractionpcsx2 committed 2024-01-22 20:38:49 +00:00
1 parent e0233daeb0
commit 28f984e87f
1 file changed
+1 -1
+1 -1
View File
@@ -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;