Merge pull request #4158 from Armada651/null-texture
TextureCacheBase: Handle textures loaded from address 0x0.
This commit is contained in:
commit
9c51b2748b
|
@ -506,9 +506,6 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::Load(const u32 stage)
|
||||||
u32 tex_levels = use_mipmaps ? ((tex.texMode1[id].max_lod + 0xf) / 0x10 + 1) : 1;
|
u32 tex_levels = use_mipmaps ? ((tex.texMode1[id].max_lod + 0xf) / 0x10 + 1) : 1;
|
||||||
const bool from_tmem = tex.texImage1[id].image_type != 0;
|
const bool from_tmem = tex.texImage1[id].image_type != 0;
|
||||||
|
|
||||||
if (0 == address)
|
|
||||||
return nullptr;
|
|
||||||
|
|
||||||
// TexelSizeInNibbles(format) * width * height / 16;
|
// TexelSizeInNibbles(format) * width * height / 16;
|
||||||
const unsigned int bsw = TexDecoder_GetBlockWidthInTexels(texformat);
|
const unsigned int bsw = TexDecoder_GetBlockWidthInTexels(texformat);
|
||||||
const unsigned int bsh = TexDecoder_GetBlockHeightInTexels(texformat);
|
const unsigned int bsh = TexDecoder_GetBlockHeightInTexels(texformat);
|
||||||
|
|
Loading…
Reference in New Issue