1
0
Fork 0

Merge branch 'timoore/optimization' into next

This commit is contained in:
Tim Moore 2012-08-03 20:20:01 +02:00
commit 6110139197

View file

@ -74,6 +74,7 @@
#include <simgear/scene/model/animation.hxx>
#include <simgear/scene/model/placement.hxx>
#include <simgear/scene/sky/sky.hxx>
#include <simgear/scene/util/DeletionManager.hxx>
#include <simgear/scene/util/SGUpdateVisitor.hxx>
#include <simgear/scene/util/RenderConstants.hxx>
#include <simgear/scene/util/SGSceneUserData.hxx>
@ -1506,7 +1507,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)