1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37:53 +00:00

Don't destroyRenderTarget with a NULL window

This commit is contained in:
scrawl 2014-01-01 22:19:02 +01:00
parent bfc9fcf2cd
commit 9245faf2aa

View File

@ -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;