mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Don't destroyRenderTarget with a NULL window
This commit is contained in:
parent
bfc9fcf2cd
commit
9245faf2aa
@ -25,7 +25,8 @@ void OgreRenderer::cleanup()
|
|||||||
delete mFader;
|
delete mFader;
|
||||||
mFader = NULL;
|
mFader = NULL;
|
||||||
|
|
||||||
Ogre::Root::getSingleton().destroyRenderTarget(mWindow);
|
if (mWindow)
|
||||||
|
Ogre::Root::getSingleton().destroyRenderTarget(mWindow);
|
||||||
mWindow = NULL;
|
mWindow = NULL;
|
||||||
|
|
||||||
delete mOgreInit;
|
delete mOgreInit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user