Remove superfluous pointer check in COpenGLDriver::removeTexture

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5781 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2019-02-27 20:32:44 +00:00
parent 0a6eda9747
commit a9554b1f58
1 changed files with 2 additions and 5 deletions

View File

@ -3581,11 +3581,8 @@ void COpenGLDriver::draw3DLine(const core::vector3df& start,
//! Removes a texture from the texture cache and deletes it, freeing lot of memory.
void COpenGLDriver::removeTexture(ITexture* texture)
{
if (texture)
{
CacheHandler->getTextureCache().remove(texture);
CNullDriver::removeTexture(texture);
}
CacheHandler->getTextureCache().remove(texture);
CNullDriver::removeTexture(texture);
}
//! Check if the driver supports creating textures with the given color format