From abdb1741a4ec2597c4eca6365fcefd1315bee705 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 4 Jan 2007 21:18:44 +0000 Subject: [PATCH] Removed the setting of thread safe ref/unref and max number of graphics contexts as this is now done automatically by osgViewer::Viewer --- examples/osgcatch/osgcatch.cpp | 3 --- examples/osghangglide/osghangglide.cpp | 4 ---- 2 files changed, 7 deletions(-) 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.