Removed the setting of thread safe ref/unref and max number of graphics contexts

as this is now done automatically by osgViewer::Viewer
This commit is contained in:
Robert Osfield
2007-01-04 21:18:44 +00:00
parent cb65524851
commit abdb1741a4
2 changed files with 0 additions and 7 deletions

View File

@@ -1516,9 +1516,6 @@ int main( int argc, char **argv )
arguments.getApplicationUsage()->addCommandLineOption("-x <float>","Horizontal offset of left and right images.");
arguments.getApplicationUsage()->addCommandLineOption("-y <float>","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;

View File

@@ -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.