From We See, "I found a small bug in osgUtil::RenderStage::draw() (osg 3.3.7), which crashes osg. The problem was caused by an access to the object _camera without checking whether the object is valid. So I changed the line:
From We See, "I found a small bug in osgUtil::RenderStage::draw() (osg 3.3.7), which crashes osg. The problem was caused by an access to the object _camera without checking whether the object is valid. So I changed the line:

Code:
if (_cameraRequiresSetUp || (_cameraAttachmentMapModifiedCount!=_camera->getAttachmentMapModifiedCount()))

to

Code:
if (_cameraRequiresSetUp || (_camera.valid() && _cameraAttachmentMapModifiedCount!=_camera->getAttachmentMapModifiedCount()))
"


git-svn-id: aa838dfc23441284dd616281de4245daec5d2135@14873 16af8721-9629-0410-8352-f15c8da7e697

ntoand/osg,artoolkit/osg,artoolkit/osg,omega-hub/osg,omega-hub/osg,koshman86/osg,XiaoCC/osg,koshman86/osg,artoolkit/osg,XiaoCC/osg,artoolkit/osg,omega-hub/osg,ghub/osg,ghub/osg,koshman86/osg,omega-hub/osg,ghub/osg,ntoand/osg,XiaoCC/osg,ghub/osg,ntoand/osg,XiaoCC/osg,koshman86/osg,XiaoCC/osg,ntoand/osg