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

View file

@ -470,9 +470,12 @@ 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!
if(entry)
{
PoolTexture(entry);
entry = NULL;
}
}
using_custom_texture = true;
}
}