Remove old osg 2.2 code.
Modified Files: src/Main/renderer.cxx
This commit is contained in:
parent
173af5d55f
commit
e837aefceb
1 changed files with 0 additions and 10 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue