Don't destroyRenderTarget with a NULL window

actorid
scrawl 11 years ago
parent bfc9fcf2cd
commit 9245faf2aa

@ -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…
Cancel
Save