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

Correct calculation of bytes for 32bit textures in gDPLoadTile

Fixed 1080 Snowboarding title logo regression #1824
This commit is contained in:
Sergey Lipskiy 2018-09-05 17:22:13 +07:00
parent 289edfd148
commit c53bf689e1

View File

@ -448,6 +448,9 @@ void gDPLoadTile(u32 tile, u32 uls, u32 ult, u32 lrs, u32 lrt)
info.size = gDP.textureImage.size;
info.loadType = LOADTYPE_TILE;
info.bytes = bpl * height;
if (gDP.loadTile->size == G_IM_SIZ_32b)
// 32 bit texture loaded into lower and upper half of TMEM, thus actual bytes doubled.
info.bytes *= 2;
if (gDP.loadTile->line == 0)
return;