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

Temporal workaround for crashes in TextureCache::_loadHiresTexture when mip-mapped textures loaded.

See #1711 for details.
This commit is contained in:
Sergey Lipskiy 2019-10-26 18:57:28 +07:00
parent ffaaf1f664
commit 2b0e1e64c2

View File

@ -855,6 +855,11 @@ bool TextureCache::_loadHiresTexture(u32 _tile, CachedTexture *_pTexture, u64 &
gDPLoadTileInfo & info = gDP.loadInfo[_pTexture->tMem];
// Temporal workaround for crash problem with mip-mapped textures. See #1711 for details.
// TODO: make proper fix.
if (info.texAddress == 0)
return false;
int bpl;
int width, height;
u8 * addr = (u8*)(RDRAM + info.texAddress);