diff --git a/examples/osgcamera/osgcamera.cpp b/examples/osgcamera/osgcamera.cpp index 3b8528975..2d5988324 100644 --- a/examples/osgcamera/osgcamera.cpp +++ b/examples/osgcamera/osgcamera.cpp @@ -130,6 +130,8 @@ struct CleanUpOperation : public osg::GraphicsThread::Operation // int main( int argc, char **argv ) { + osg::Referenced::setThreadSafeReferenceCounting(true); + // use an ArgumentParser object to manage the program arguments. osg::ArgumentParser arguments(&argc,argv);