From 9d66c8b1a192c88da824209afd70ee23a0bccf56 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sun, 23 Jun 2024 02:10:43 +0100 Subject: [PATCH] GS/HW: Correct rect checks in textureminmax Was supposed to be in my PR but forgot to push it. --- pcsx2/GS/GSState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/GSState.cpp b/pcsx2/GS/GSState.cpp index e7328dfecd..2b9b71108f 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -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);