mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-28 20:36:42 +00:00
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()
|
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)
|
void SceneWidget::setNavigation (Navigation *navigation)
|
||||||
|
|
Loading…
Reference in a new issue