diff --git a/examples/osgcatch/osgcatch.cpp b/examples/osgcatch/osgcatch.cpp index a070ef949..ecb98b419 100644 --- a/examples/osgcatch/osgcatch.cpp +++ b/examples/osgcatch/osgcatch.cpp @@ -1516,9 +1516,6 @@ int main( int argc, char **argv ) arguments.getApplicationUsage()->addCommandLineOption("-x ","Horizontal offset of left and right images."); arguments.getApplicationUsage()->addCommandLineOption("-y ","Vertical offset of left and right images."); arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); - - // todo for osgViewer - osg::Referenced::setThreadSafeReferenceCounting(true); // construct the viewer. osgViewer::Viewer viewer; diff --git a/examples/osghangglide/osghangglide.cpp b/examples/osghangglide/osghangglide.cpp index 830f23379..bc05d1b65 100644 --- a/examples/osghangglide/osghangglide.cpp +++ b/examples/osghangglide/osghangglide.cpp @@ -111,13 +111,9 @@ int main( int argc, char **argv ) arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] filename ..."); arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); - osg::DisplaySettings::instance()->setMaxNumberOfGraphicsContexts(2); - osg::Referenced::setThreadSafeReferenceCounting(true); - // construct the viewer. osgViewer::Viewer viewer; - viewer.setCameraManipulator(new GliderManipulator()); // if user request help write it out to cout.