fixed SceneWidget destructor

actorid
Marc Zinnschlag 11 years ago
parent 397921e457
commit 7e0f0c8402

@ -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…
Cancel
Save