GS-HW: Round up rect for hardware draws

This commit is contained in:
refractionpcsx2 2023-03-20 15:32:47 +00:00
parent cb2fe3792a
commit e67aa73e75
1 changed files with 3 additions and 2 deletions

View File

@ -1574,8 +1574,9 @@ void GSRendererHW::Draw()
} }
} }
// The rectangle of the draw // The rectangle of the draw rounded up.
m_r = GSVector4i(m_vt.m_min.p.xyxy(m_vt.m_max.p)).rintersect(GSVector4i(context->scissor.in)); const GSVector4 rect = m_vt.m_min.p.xyxy(m_vt.m_max.p) + GSVector4(0.0f, 0.0f, 0.5f, 0.5f);
m_r = GSVector4i(rect).rintersect(GSVector4i(context->scissor.in));
if (m_channel_shuffle) if (m_channel_shuffle)
{ {