mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 06:15:32 +00:00
Don't destroyRenderTarget with a NULL window
This commit is contained in:
parent
bfc9fcf2cd
commit
9245faf2aa
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ void OgreRenderer::cleanup()
|
|||
delete mFader;
|
||||
mFader = NULL;
|
||||
|
||||
Ogre::Root::getSingleton().destroyRenderTarget(mWindow);
|
||||
if (mWindow)
|
||||
Ogre::Root::getSingleton().destroyRenderTarget(mWindow);
|
||||
mWindow = NULL;
|
||||
|
||||
delete mOgreInit;
|
||||
|
|
Loading…
Reference in a new issue