Remove superfluous pointer check in COpenGLDriver::removeTexture
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5781 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
0a6eda9747
commit
a9554b1f58
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue