Skip to content

Commit

Permalink
GS/HW: Don't preload target from other targets after hw clear
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Jan 22, 2024
1 parent e0233da commit 28f984e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/GS/Renderers/HW/GSTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 28f984e

Please sign in to comment.