Skip to content

Commit

Permalink
GS/HW: Adjust decorrection further.
Browse files Browse the repository at this point in the history
  • Loading branch information
lightningterror committed Mar 2, 2024
1 parent 7fb558c commit 46f540e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pcsx2/GS/Renderers/HW/GSRendererHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5288,8 +5288,10 @@ __ri void GSRendererHW::DrawPrims(GSTextureCache::Target* rt, GSTextureCache::Ta
}
else if (m_conf.colormask.wa)
{
if (m_cached_ctx.FRAME.FBMSK == 0x3FFF)
if (!(m_cached_ctx.FRAME.FBMSK & 0xFFFC0000))
{
rt->m_rt_alpha_scale = false;
}
else if (m_cached_ctx.FRAME.FBMSK & 0xFFFC0000)
{
rt->RTADecorrect(rt);
Expand All @@ -5306,15 +5308,17 @@ __ri void GSRendererHW::DrawPrims(GSTextureCache::Target* rt, GSTextureCache::Ta
}
}
else if (rt->m_last_draw == s_n)
{
rt->m_rt_alpha_scale = false;
}
else
{
rt->RTADecorrect(rt);
m_conf.rt = rt->m_texture;
}
}
else
m_conf.ps.rta_correction = rt->m_rt_alpha_scale;

m_conf.ps.rta_correction = rt->m_rt_alpha_scale;
}

bool blending_alpha_pass = false;
Expand Down

0 comments on commit 46f540e

Please sign in to comment.