forked from teamnwah/openmw-tes3coop
fixed SceneWidget destructor
This commit is contained in:
parent
397921e457
commit
7e0f0c8402
1 changed files with 5 additions and 1 deletions
|
@ -94,7 +94,11 @@ namespace CSVRender
|
|||
|
||||
SceneWidget::~SceneWidget()
|
||||
{
|
||||
Ogre::Root::getSingleton().destroyRenderTarget(mWindow);
|
||||
if (mWindow)
|
||||
Ogre::Root::getSingleton().destroyRenderTarget (mWindow);
|
||||
|
||||
if (mSceneMgr)
|
||||
Ogre::Root::getSingleton().destroySceneManager (mSceneMgr);
|
||||
}
|
||||
|
||||
void SceneWidget::setNavigation (Navigation *navigation)
|
||||
|
|
Loading…
Reference in a new issue