GS: Off by one when reducing/extending texture coordinates

This commit is contained in:
DiscoStarslayer authored and lightningterror committed 2026-10-16 18:39:56 +02:00
1 parent 685637d30b
commit fdd6aca352
1 file changed
+2 -2
+2 -2
View File
@@ -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++;
}