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:
degasus 2013-11-07 15:54:16 +01:00
parent c33036aa01
commit ea2d8bf328
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}