mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 05:45:40 +00:00
Merge pull request #1495 from Azaezel/alpha41/safeSafties
add extra safeties to safe_delete macros
This commit is contained in:
commit
ccd30a19cc
2 changed files with 4 additions and 3 deletions
|
|
@ -144,7 +144,8 @@ GFXTextureObject::~GFXTextureObject()
|
|||
|
||||
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