1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

gDPLoadTile: skip tile load if tile coordinates are incorrect.

Fixed FIFA - Road to World Cup 98: black line in menu #952
This commit is contained in:
Sergey Lipskiy 2016-05-04 22:41:49 +06:00
parent 8f5a6b74b4
commit 773e95382e

View File

@ -473,6 +473,9 @@ void gDPLoadTile(u32 tile, u32 uls, u32 ult, u32 lrs, u32 lrt)
gDP.loadTile->loadType = LOADTYPE_TILE;
gDP.loadTile->imageAddress = gDP.textureImage.address;
if (gDP.loadTile->lrs < gDP.loadTile->uls || gDP.loadTile->lrt < gDP.loadTile->ult)
return;
const u32 width = (gDP.loadTile->lrs - gDP.loadTile->uls + 1) & 0x03FF;
u32 height = (gDP.loadTile->lrt - gDP.loadTile->ult + 1) & 0x03FF;