diff --git a/src/Main/CameraGroup.cxx b/src/Main/CameraGroup.cxx index e80e0c564..a185d70dd 100644 --- a/src/Main/CameraGroup.cxx +++ b/src/Main/CameraGroup.cxx @@ -191,8 +191,10 @@ void CameraGroup::update(const osg::Vec3d& position, for (CameraList::iterator i = _cameras.begin(); i != _cameras.end(); ++i) { const CameraInfo* info = i->get(); const View::Slave& slave = _viewer->getSlave(info->slaveIndex); +#if SG_OSG_VERSION_LESS_THAN(3,0,0) // refreshes camera viewports (for now) updateCameras(info); +#endif Camera* camera = info->camera.get(); Matrix viewMatrix; if ((info->flags & VIEW_ABSOLUTE) != 0)