mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 14:36:39 +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,6 +25,7 @@ void OgreRenderer::cleanup()
|
||||||
delete mFader;
|
delete mFader;
|
||||||
mFader = NULL;
|
mFader = NULL;
|
||||||
|
|
||||||
|
if (mWindow)
|
||||||
Ogre::Root::getSingleton().destroyRenderTarget(mWindow);
|
Ogre::Root::getSingleton().destroyRenderTarget(mWindow);
|
||||||
mWindow = NULL;
|
mWindow = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue