mirror of https://github.com/PCSX2/pcsx2.git
GS: fix loopPagesWithBreak last iteration logic.
This commit is contained in:
parent
753036f0c8
commit
d5bd187930
|
@ -345,8 +345,9 @@ public:
|
||||||
touched[idx] |= mask;
|
touched[idx] |= mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (y < yCnt - 1)
|
if (y < yCnt - 2)
|
||||||
{
|
{
|
||||||
|
// Next iteration is not last (y + 1 < yCnt - 1).
|
||||||
startOff = midRowPgXStart;
|
startOff = midRowPgXStart;
|
||||||
endOff = midRowPgXEnd;
|
endOff = midRowPgXEnd;
|
||||||
}
|
}
|
||||||
|
@ -371,8 +372,9 @@ public:
|
||||||
if (!fn(pos % MAX_PAGES))
|
if (!fn(pos % MAX_PAGES))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (y < yCnt - 1)
|
if (y < yCnt - 2)
|
||||||
{
|
{
|
||||||
|
// Next iteration is not last (y + 1 < yCnt - 1).
|
||||||
startOff = midRowPgXStart;
|
startOff = midRowPgXStart;
|
||||||
endOff = midRowPgXEnd;
|
endOff = midRowPgXEnd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue