mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +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
1 changed files with 2 additions and 1 deletions
|
|
@ -144,7 +144,8 @@ GFXTextureObject::~GFXTextureObject()
|
||||||
|
|
||||||
void GFXTextureObject::destroySelf()
|
void GFXTextureObject::destroySelf()
|
||||||
{
|
{
|
||||||
mDevice->mTextureManager->requestDeleteTexture(this);
|
if (mDevice && mDevice->mTextureManager)
|
||||||
|
mDevice->mTextureManager->requestDeleteTexture(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue