Skip to content

Commit

Permalink
GS/HW: Round source lookup rect to block boundary and improve overlap…
Browse files Browse the repository at this point in the history
… check.

- also clean up formatting in GSTextureCache.cpp
  • Loading branch information
refractionpcsx2 committed Mar 30, 2024
1 parent a959d33 commit 545fbde
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 59 deletions.
2 changes: 1 addition & 1 deletion pcsx2/GS/Renderers/HW/GSRendererHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2389,7 +2389,7 @@ void GSRendererHW::Draw()
FRAME_TEX0.TBW = m_cached_ctx.FRAME.FBW;
FRAME_TEX0.PSM = m_cached_ctx.FRAME.PSM;

GSTextureCache::Target* tgt = g_texture_cache->LookupTarget(FRAME_TEX0, GSVector2i(m_vt.m_max.p.x, m_vt.m_max.p.y), GetTextureScaleFactor(), GSTextureCache::RenderTarget, true,
GSTextureCache::Target* tgt = g_texture_cache->LookupTarget(FRAME_TEX0, GSVector2i(m_vt.m_max.p.x, m_vt.m_max.p.y), GetTextureScaleFactor(), GSTextureCache::RenderTarget, false,
fm);

if (tgt)
Expand Down
Loading

0 comments on commit 545fbde

Please sign in to comment.