From fdd6aca352ccf104a462b1a2d0c19f43006e5612 Mon Sep 17 00:00:00 2001 From: DiscoStarslayer Date: Mon, 5 Oct 2026 15:45:01 -0400 Subject: [PATCH] GS: Off by one when reducing/extending texture coordinates --- pcsx2/GS/GSDrawingContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/GSDrawingContext.cpp b/pcsx2/GS/GSDrawingContext.cpp index 1c0f7895a3..c276ceb366 100644 --- a/pcsx2/GS/GSDrawingContext.cpp +++ b/pcsx2/GS/GSDrawingContext.cpp @@ -49,7 +49,7 @@ static int findmax(int tl, int br, int limit, int wm, int minuv, int maxuv) static int reduce(int uv, int size) { - while (size > 3 && (1 << (size - 1)) >= uv) + while (size > 3 && (1 << (size - 1)) > uv) { size--; } @@ -59,7 +59,7 @@ static int reduce(int uv, int size) static int extend(int uv, int size) { - while (size < 10 && (1 << size) < uv) + while (size < 10 && (1 << size) <= uv) { size++; }