Changed CameraNode::getDataChangeMutex() to be a pointer rather than a reference to

get around osgIntrospeciton build problem with the OpenThreads::Mutex copy constructor being private.
This commit is contained in:
Robert Osfield
2005-11-23 16:32:55 +00:00
parent 3a62b5193c
commit e1dd759dd8
4 changed files with 5 additions and 5 deletions

View File

@@ -1104,7 +1104,7 @@ void CullVisitor::apply(osg::CameraNode& camera)
osg::ref_ptr<osgUtil::RenderStage> rtts = dynamic_cast<osgUtil::RenderStage*>(camera.getRenderingCache(contextID));
if (!rtts)
{
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(camera.getDataChangeMutex());
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(*(camera.getDataChangeMutex()));
rtts = new osgUtil::RenderStage;
rtts->setCameraNode(&camera);