mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-31 07:21:02 +00:00
Merge pull request #5206 from ligfx/fixcustomtextures
TextureCacheBase: fix custom textures not being loaded
This commit is contained in:
commit
27e9e469d4
@ -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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user