From 2b0e1e64c248ea93f171de340a34bf9e35b7afea Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sat, 26 Oct 2019 18:57:28 +0700 Subject: [PATCH] Temporal workaround for crashes in TextureCache::_loadHiresTexture when mip-mapped textures loaded. See #1711 for details. --- src/Textures.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Textures.cpp b/src/Textures.cpp index 367a7bc9..02aef420 100644 --- a/src/Textures.cpp +++ b/src/Textures.cpp @@ -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);