mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fix tile width calculation in LOADTYPE_TILE mode.
Fixed background textures size in Dark Rift.
This commit is contained in:
parent
143a68bc07
commit
67cab52909
|
@ -604,7 +604,7 @@ void _calcTileSizes(u32 _t, TileSizes & _sizes, gDPTile * _pLoadTile)
|
||||||
if (pTile->masks && ((maskWidth * maskHeight) <= maxTexels))
|
if (pTile->masks && ((maskWidth * maskHeight) <= maxTexels))
|
||||||
width = maskWidth; // Use mask width if set and valid
|
width = maskWidth; // Use mask width if set and valid
|
||||||
else {
|
else {
|
||||||
width = min(info.width, info.texWidth);
|
width = info.width;
|
||||||
if (info.size > pTile->size)
|
if (info.size > pTile->size)
|
||||||
width <<= info.size - pTile->size;
|
width <<= info.size - pTile->size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user