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

Correct texture size calculation: use mask size only if mask != 0.

Fixed backgrounds in F-1 Pole Position.
This commit is contained in:
Sergey Lipskiy 2015-02-24 13:33:46 +06:00
parent 2fb7477420
commit e3f51aae25

View File

@ -661,14 +661,14 @@ void _calcTileSizes(u32 _t, TileSizes & _sizes, gDPTile * _pLoadTile)
if (pTile->clamps != 0)
_sizes.realWidth = _sizes.clampWidth;
else if (pTile->mirrors + pTile->masks != 0)
else if (pTile->masks != 0)
_sizes.realWidth = _sizes.maskWidth;
else
_sizes.realWidth = _sizes.width;
if (pTile->clampt != 0)
_sizes.realHeight = _sizes.clampHeight;
else if (pTile->mirrort + pTile->maskt != 0)
else if (pTile->maskt != 0)
_sizes.realHeight = _sizes.maskHeight;
else
_sizes.realHeight = _sizes.height;