mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoCommon: fix custom textures
This fix a regression by revision 6cece6b486
delete pointer must not do anything if pointer==NULL.
This commit is contained in:
@ -470,8 +470,11 @@ TextureCache::TCacheEntryBase* TextureCache::Load(unsigned int const stage,
|
||||
expandedHeight = height;
|
||||
|
||||
// If we thought we could reuse the texture before, make sure to pool it now!
|
||||
PoolTexture(entry);
|
||||
entry = NULL;
|
||||
if(entry)
|
||||
{
|
||||
PoolTexture(entry);
|
||||
entry = NULL;
|
||||
}
|
||||
}
|
||||
using_custom_texture = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user