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:
parent
c33036aa01
commit
ea2d8bf328
|
@ -470,8 +470,11 @@ TextureCache::TCacheEntryBase* TextureCache::Load(unsigned int const stage,
|
||||||
expandedHeight = height;
|
expandedHeight = height;
|
||||||
|
|
||||||
// If we thought we could reuse the texture before, make sure to pool it now!
|
// If we thought we could reuse the texture before, make sure to pool it now!
|
||||||
PoolTexture(entry);
|
if(entry)
|
||||||
entry = NULL;
|
{
|
||||||
|
PoolTexture(entry);
|
||||||
|
entry = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
using_custom_texture = true;
|
using_custom_texture = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue