mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-20 01:39:34 +02:00
GS: Off by one when reducing/extending texture coordinates
This commit is contained in:
1 parent
685637d30b
commit
fdd6aca352
1 file changed
+2
-2
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user