From f2762d0be7b3ccb8ae9b488126db9c44d39fac63 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Fri, 3 Aug 2012 17:16:18 +0200 Subject: [PATCH] use DeletionManager --- src/Viewer/renderer.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Viewer/renderer.cxx b/src/Viewer/renderer.cxx index 0176b3768..b7d930483 100644 --- a/src/Viewer/renderer.cxx +++ b/src/Viewer/renderer.cxx @@ -74,6 +74,7 @@ #include #include #include +#include #include #include #include @@ -1503,7 +1504,9 @@ FGRenderer::setupView( void ) stateSet = mRealRoot->getOrCreateStateSet(); stateSet->setAttributeAndModes(new osg::Program, osg::StateAttribute::ON); - mDeferredRealRoot->addChild( mRealRoot.get() ); + mDeferredRealRoot->addChild( mRealRoot.get() ); + + DeletionManager::install(mRealRoot.get()); } // Update all Visuals (redraws anything graphics related)