1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Add tile format and size to texture checksum calculation.

This commit is contained in:
Sergey Lipskiy 2016-07-11 21:50:37 +06:00
parent da2d580d59
commit d1749518ca

View File

@ -1164,7 +1164,7 @@ struct TextureParams
{
u16 width;
u16 height;
u16 flags;
u32 flags;
};
static
@ -1436,7 +1436,9 @@ void TextureCache::update(u32 _t)
(pTile->mirrors << 8) |
(pTile->mirrort << 9) |
(pTile->clamps << 10) |
(pTile->clampt << 11);
(pTile->clampt << 11) |
(pTile->size << 12) |
(pTile->format << 14);
TileSizes sizes;
_calcTileSizes(_t, sizes, gDP.loadTile);
params.width = sizes.realWidth;