Chaned the OsgCameraGroup so that its scene handler list used ref_ptr<> for

robustly managing memory.
This commit is contained in:
Robert Osfield
2003-03-18 20:27:09 +00:00
parent b04edb70aa
commit 8ed643ca24
8 changed files with 14 additions and 146 deletions

View File

@@ -355,10 +355,9 @@ int main( int argc, char **argv )
itr!=viewer.getSceneHandlerList().end();
++itr)
{
osgUtil::SceneView* sceneview = *itr;
// switch off small feature culling to prevent the light points from being culled.
osgUtil::SceneView* sceneview = itr->get();
sceneview->setCullingMode( sceneview->getCullingMode() & ~osg::CullStack::SMALL_FEATURE_CULLING);
//sceneview->setCullingMode( 0);
}
while( !viewer.done() )