Show
Ignore:
Timestamp:
01/02/07 14:02:30 (8 years ago)
Author:
robert
Message:

Shifted the setting of thread safe ref/unref to earlier in the main to
ensure that the Viewer's view is set up thread safe.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgcatch/osgcatch.cpp

    r5870 r5871  
    15181518    arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); 
    15191519     
    1520  
    1521     // construct the viewer. 
    1522     osgViewer::Viewer viewer; 
    1523  
    15241520    // todo for osgViewer 
    15251521    osg::DisplaySettings::instance()->setMaxNumberOfGraphicsContexts(2); 
    15261522    osg::Referenced::setThreadSafeReferenceCounting(true); 
     1523 
     1524    // construct the viewer. 
     1525    osgViewer::Viewer viewer; 
     1526 
    15271527 
    15281528    // register the handler to add keyboard and mosue handling.