GS/HW: Correct rect checks in textureminmax

Was supposed to be in my PR but forgot to push it.
This commit is contained in:
refractionpcsx2 2024-06-23 02:10:43 +01:00
parent a132a6f979
commit 9d66c8b1a1
1 changed files with 2 additions and 2 deletions

View File

@ -4005,12 +4005,12 @@ GSState::TextureMinMaxResult GSState::GetTextureMinMax(GIFRegTEX0 TEX0, GIFRegCL
const bool inc_y = vr.y < tr.w;
vr = (vr + GSVector4i(inc_x ? 0 : -1, inc_y ? 0 : -1, inc_x ? 1 : 0, inc_y ? 1 : 0)).rintersect(tr);
}
else if (vr.xzxz().rempty())
else if (vr.xxzz().rempty())
{
const bool inc_x = vr.x < tr.z;
vr = (vr + GSVector4i(inc_x ? 0 : -1, 0, inc_x ? 1 : 0, 0)).rintersect(tr);
}
else if (vr.ywyw().rempty())
else if (vr.yyww().rempty())
{
const bool inc_y = vr.y < tr.w;
vr = (vr + GSVector4i(0, inc_y ? 0 : -1, 0, inc_y ? 1 : 0)).rintersect(tr);