Show
Ignore:
Timestamp:
01/04/07 17:49:58 (8 years ago)
Author:
robert
Message:

Made Refernced::setThreadSafeReferenceCounting(bool) a virtual then overrode
this in various scene graph classes to ensure that the scene graph gets
updated as well as the objects that the initialial call is made from.

Files:
1 modified

Legend:

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

    r5882 r5885  
    151151    } 
    152152 
    153     // osg::DisplaySettings::instance()->setMaxNumberOfGraphicsContexts(4); 
    154     osg::Referenced::setThreadSafeReferenceCounting(true); 
    155  
    156153    // load the scene. 
    157154    osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments); 
     
    173170    else viewer.setCameraManipulator( new osgGA::TrackballManipulator() ); 
    174171 
    175 #if 1 
     172#if 0 
    176173 
    177174    // singleWindowMultipleCameras(viewer); 
     
    185182 
    186183#endif 
    187  
    188     loadedModel->resizeGLObjectBuffers(osg::DisplaySettings::instance()->getMaxNumberOfGraphicsContexts()); 
    189  
    190184     
    191185    viewer.realize(); 
    192186 
    193     bool limitNumberOfFrames = false; 
     187    bool limitNumberOfFrames = true; 
    194188    unsigned int numFrames = 0; 
    195189    unsigned int maxFrames = 10;