1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Fix tile width calculation in LOADTYPE_TILE mode.

Fixed background textures size in Dark Rift.
This commit is contained in:
Sergey Lipskiy 2016-03-05 20:09:11 +06:00
parent 143a68bc07
commit 67cab52909

View File

@ -604,7 +604,7 @@ void _calcTileSizes(u32 _t, TileSizes & _sizes, gDPTile * _pLoadTile)
if (pTile->masks && ((maskWidth * maskHeight) <= maxTexels))
width = maskWidth; // Use mask width if set and valid
else {
width = min(info.width, info.texWidth);
width = info.width;
if (info.size > pTile->size)
width <<= info.size - pTile->size;
}