GS: fix loopPagesWithBreak last iteration logic.

This commit is contained in:
iMineLink 2022-01-01 12:35:22 +01:00 committed by refractionpcsx2
parent 753036f0c8
commit d5bd187930
1 changed files with 4 additions and 2 deletions

View File

@ -345,8 +345,9 @@ public:
touched[idx] |= mask;
}
if (y < yCnt - 1)
if (y < yCnt - 2)
{
// Next iteration is not last (y + 1 < yCnt - 1).
startOff = midRowPgXStart;
endOff = midRowPgXEnd;
}
@ -371,8 +372,9 @@ public:
if (!fn(pos % MAX_PAGES))
return;
if (y < yCnt - 1)
if (y < yCnt - 2)
{
// Next iteration is not last (y + 1 < yCnt - 1).
startOff = midRowPgXStart;
endOff = midRowPgXEnd;
}