From 243acb61c8cae76c269c5d83d8d05de17ad1153a Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sat, 25 Jun 2011 09:22:51 +0200 Subject: [PATCH] Fix issue #354: updateCameras reset viewport size to its initial value on OSG 3.0 --- src/Main/CameraGroup.cxx | 2 ++ 1 file changed, 2 insertions(+) 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)