1
0
Fork 0

Remove old osg 2.2 code.

Modified Files:
	src/Main/renderer.cxx
This commit is contained in:
frohlich 2009-06-11 09:26:45 +00:00 committed by Tim Moore
parent 173af5d55f
commit e837aefceb

View file

@ -99,11 +99,6 @@
#include "CameraGroup.hxx" #include "CameraGroup.hxx"
#include "FGEventHandler.hxx" #include "FGEventHandler.hxx"
// XXX Make this go away when OSG 2.2 is released.
#if (FG_OSG_VERSION >= 21004)
#define UPDATE_VISITOR_IN_VIEWER 1
#endif
using namespace osg; using namespace osg;
using namespace simgear; using namespace simgear;
using namespace flightgear; using namespace flightgear;
@ -398,12 +393,7 @@ FGRenderer::splashinit( void ) {
// Scene doesn't seem to pass the frame stamp to the update // Scene doesn't seem to pass the frame stamp to the update
// visitor automatically. // visitor automatically.
mUpdateVisitor->setFrameStamp(mFrameStamp.get()); mUpdateVisitor->setFrameStamp(mFrameStamp.get());
#ifdef UPDATE_VISITOR_IN_VIEWER
viewer->setUpdateVisitor(mUpdateVisitor.get()); viewer->setUpdateVisitor(mUpdateVisitor.get());
#else
osgViewer::Scene* scene = viewer->getScene();
scene->setUpdateVisitor(mUpdateVisitor.get());
#endif
} }
void void