mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
fixed SceneWidget destructor
This commit is contained in:
parent
397921e457
commit
7e0f0c8402
@ -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 New Issue
Block a user