1
0
Fork 0

Fix issue #354: updateCameras reset viewport size to its initial value on OSG 3.0

This commit is contained in:
Frederic Bouvier 2011-06-25 09:22:51 +02:00
parent 827ea96d7e
commit 243acb61c8

View file

@ -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)