mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Correct rect checks in textureminmax
Was supposed to be in my PR but forgot to push it.
This commit is contained in:
parent
a132a6f979
commit
9d66c8b1a1
|
@ -4005,12 +4005,12 @@ GSState::TextureMinMaxResult GSState::GetTextureMinMax(GIFRegTEX0 TEX0, GIFRegCL
|
||||||
const bool inc_y = vr.y < tr.w;
|
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);
|
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;
|
const bool inc_x = vr.x < tr.z;
|
||||||
vr = (vr + GSVector4i(inc_x ? 0 : -1, 0, inc_x ? 1 : 0, 0)).rintersect(tr);
|
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;
|
const bool inc_y = vr.y < tr.w;
|
||||||
vr = (vr + GSVector4i(0, inc_y ? 0 : -1, 0, inc_y ? 1 : 0)).rintersect(tr);
|
vr = (vr + GSVector4i(0, inc_y ? 0 : -1, 0, inc_y ? 1 : 0)).rintersect(tr);
|
||||||
|
|
Loading…
Reference in New Issue