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

Correct _calcTileSizes.

Fixed #1317 Smash 64 Graphical Inaccuracies
This commit is contained in:
Sergey Lipskiy 2017-03-20 21:31:26 +07:00
parent f28240008c
commit 6f35e5a237

View File

@ -678,11 +678,6 @@ void _calcTileSizes(u32 _t, TileSizes & _sizes, gDPTile * _pLoadTile)
_sizes.clampWidth = (pTile->clamps && gDP.otherMode.cycleType != G_CYC_COPY) ? tileWidth : width;
_sizes.clampHeight = (pTile->clampt && gDP.otherMode.cycleType != G_CYC_COPY) ? tileHeight : height;
if (_sizes.clampWidth > 256)
pTile->clamps = 0;
if (_sizes.clampHeight > 256)
pTile->clampt = 0;
// Make sure masking is valid
if (maskWidth > width) {
pTile->masks = powof(width);