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

This commit is contained in:
Robert Osfield
2009-01-27 14:11:37 +00:00
parent 29157f24d9
commit c7744b15a3
3 changed files with 4 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ class OSGSHADOW_EXPORT DebugShadowMap : public ViewDependentShadowTechnique
osg::ref_ptr< osg::Camera > _camera;
osg::Matrixd _viewProjection;
osg::Camera * _viewCamera;
osg::observer_ptr<osg::Camera> _viewCamera;
// Debug hud variables