Show
Ignore:
Timestamp:
01/12/09 14:12:04 (5 years ago)
Author:
robert
Message:

Changed to use ref_ptr<> for scene model to avoid crash

Files:
1 modified

Legend:

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

    r9479 r9485  
    22852285 
    22862286    // create a model from the images. 
    2287     osg::Node* rootNode = 0; 
     2287    osg::ref_ptr<osg::Node> rootNode = 0; 
    22882288     
    22892289    if (useOsgVolume) 
     
    23712371 
    23722372        // set the scene to render 
    2373         viewer.setSceneData(rootNode); 
     2373        viewer.setSceneData(rootNode.get()); 
    23742374         
    23752375        // the the viewers main frame loop