Show
Ignore:
Timestamp:
01/27/09 15:11:37 (4 years ago)
Author:
robert
Message:

Converted viewer camera references to use observer_ptr<> rather than ref_ptr<> or C pointers to avoid issues with circular references/dangling pointers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgShadow/MinimalDrawBoundsShadowMap

    r9376 r9555  
    5454            osg::ref_ptr< osg::Texture2D >       _boundAnalysisTexture; 
    5555            osg::ref_ptr< osg::Camera >          _boundAnalysisCamera; 
    56             osg::ref_ptr< osg::Camera >          _mainCamera; 
     56            osg::observer_ptr< osg::Camera >     _mainCamera; 
    5757 
    5858            void setShadowCameraProjectionMatrixPtr( osg::RefMatrix * projection )