mostly fix culling

This commit is contained in:
StapleButter
2017-03-07 21:38:47 +01:00
parent 7799b33dfe
commit c24245c59a
2 changed files with 15 additions and 34 deletions

View File

@ -885,7 +885,7 @@ void GPU2D::DrawBG_3D(u32 line, u32* dst)
i = (0x100 - (xoff & 0xFF));
xoff += i;
}
if ((xoff + iend - 1) & 0x100)
if ((xoff - i + iend - 1) & 0x100)
{
iend -= (xoff & 0xFF);
}