mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
make sure device and texture manager are still around when making a deletion request of them
This commit is contained in:
parent
2c15877d5a
commit
aebd497fd6
|
|
@ -144,7 +144,8 @@ GFXTextureObject::~GFXTextureObject()
|
|||
|
||||
void GFXTextureObject::destroySelf()
|
||||
{
|
||||
mDevice->mTextureManager->requestDeleteTexture(this);
|
||||
if (mDevice && mDevice->mTextureManager)
|
||||
mDevice->mTextureManager->requestDeleteTexture(this);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue