1
0
Fork 0

MSVC 7.1 fix

This commit is contained in:
fredb 2008-08-02 10:01:08 +00:00
parent d1dc9c85d0
commit e5201fbb70

View file

@ -1,4 +1,4 @@
// fg_os_common.cxx -- common functions for fg_os interface
// fg_os_osgviewer.cxx -- common functions for fg_os interface
// implemented as an osgViewer
//
// Copyright (C) 2007 Tim Moore timoore@redhat.com
@ -18,6 +18,10 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <algorithm>
#include <iostream>
#include <sstream>
@ -81,13 +85,13 @@ CameraGroup* buildDefaultCameraGroup(osgViewer::Viewer* viewer,
CameraGroup* cgroup = CameraGroup::buildCameraGroup(viewer, gnode);
// Look for a camera with no shear
Camera* masterCamera = 0;
for (CameraGroup::CameraIterator iter = cgroup->camerasBegin(),
for (CameraGroup::CameraIterator citer = cgroup->camerasBegin(),
e = cgroup->camerasEnd();
iter != e;
++iter) {
const View::Slave& slave = viewer->getSlave((*iter)->slaveIndex);
citer != e;
++citer) {
const View::Slave& slave = viewer->getSlave((*citer)->slaveIndex);
if (slave._projectionOffset.isIdentity()) {
masterCamera = (*iter)->camera.get();
masterCamera = (*citer)->camera.get();
break;
}
}