Merge pull request #5206 from ligfx/fixcustomtextures

TextureCacheBase: fix custom textures not being loaded
This commit is contained in:
Stenzek 2017-04-05 16:49:54 +10:00 committed by GitHub
commit 27e9e469d4

View File

@ -781,10 +781,12 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::Load(const u32 stage)
if (!entry)
return nullptr;
if (!hires_tex)
{
const u8* tlut = &texMem[tlutaddr];
if (decode_on_gpu)
if (hires_tex)
{
entry->Load(temp, width, height, expandedWidth, 0);
}
else if (decode_on_gpu)
{
u32 row_stride = bytes_per_block * (expandedWidth / bsw);
g_texture_cache->DecodeTextureOnGPU(
@ -807,7 +809,6 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::Load(const u32 stage)
entry->Load(temp, width, height, expandedWidth, 0);
}
}
iter = textures_by_address.emplace(address, entry);
if (g_ActiveConfig.iSafeTextureCache_ColorSamples == 0 ||