1
0
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:
Marc Zinnschlag 2014-03-06 12:42:09 +01:00
parent 397921e457
commit 7e0f0c8402

View File

@ -94,7 +94,11 @@ namespace CSVRender
SceneWidget::~SceneWidget() SceneWidget::~SceneWidget()
{ {
if (mWindow)
Ogre::Root::getSingleton().destroyRenderTarget (mWindow); Ogre::Root::getSingleton().destroyRenderTarget (mWindow);
if (mSceneMgr)
Ogre::Root::getSingleton().destroySceneManager (mSceneMgr);
} }
void SceneWidget::setNavigation (Navigation *navigation) void SceneWidget::setNavigation (Navigation *navigation)