mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-27 12:40:01 +00:00
VideoCommon: fix custom textures
This fix a regression by revision 6cece6b48667 delete pointer must not do anything if pointer==NULL.
This commit is contained in:
parent
c33036aa01
commit
ea2d8bf328
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user