1
0
Fork 0

use DeletionManager

This commit is contained in:
Tim Moore 2012-08-03 17:16:18 +02:00
parent 9db625af79
commit f2762d0be7

View file

@ -74,6 +74,7 @@
#include <simgear/scene/model/animation.hxx> #include <simgear/scene/model/animation.hxx>
#include <simgear/scene/model/placement.hxx> #include <simgear/scene/model/placement.hxx>
#include <simgear/scene/sky/sky.hxx> #include <simgear/scene/sky/sky.hxx>
#include <simgear/scene/util/DeletionManager.hxx>
#include <simgear/scene/util/SGUpdateVisitor.hxx> #include <simgear/scene/util/SGUpdateVisitor.hxx>
#include <simgear/scene/util/RenderConstants.hxx> #include <simgear/scene/util/RenderConstants.hxx>
#include <simgear/scene/util/SGSceneUserData.hxx> #include <simgear/scene/util/SGSceneUserData.hxx>
@ -1503,7 +1504,9 @@ FGRenderer::setupView( void )
stateSet = mRealRoot->getOrCreateStateSet(); stateSet = mRealRoot->getOrCreateStateSet();
stateSet->setAttributeAndModes(new osg::Program, osg::StateAttribute::ON); 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) // Update all Visuals (redraws anything graphics related)