From 2d14519946b9cab64ac193827777932a242472b1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 7 Dec 2005 09:48:28 +0000 Subject: [PATCH] Enabled thread safe counting by default. --- examples/osgcamera/osgcamera.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);