diff --git a/examples/osgcatch/osgcatch.cpp b/examples/osgcatch/osgcatch.cpp index 1a0605cc9..55c36efe3 100644 --- a/examples/osgcatch/osgcatch.cpp +++ b/examples/osgcatch/osgcatch.cpp @@ -1517,13 +1517,13 @@ int main( int argc, char **argv ) arguments.getApplicationUsage()->addCommandLineOption("-y ","Vertical offset of left and right images."); arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); + // todo for osgViewer + osg::DisplaySettings::instance()->setMaxNumberOfGraphicsContexts(2); + osg::Referenced::setThreadSafeReferenceCounting(true); // construct the viewer. osgViewer::Viewer viewer; - // todo for osgViewer - osg::DisplaySettings::instance()->setMaxNumberOfGraphicsContexts(2); - osg::Referenced::setThreadSafeReferenceCounting(true); // register the handler to add keyboard and mosue handling. GameEventHandler* seh = new GameEventHandler();