mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +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:
parent
8f5a6b74b4
commit
773e95382e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user