1
0
Fork 0

Fix unsigned int vs. int problem in SplashScreen::manuallyResizeFBO()

Justified because:

  osg::Camera::getNumChildren() returns an unsigned int, and
  osg::Camera::getChild() takes an unsigned int
This commit is contained in:
Florent Rougon 2017-03-11 21:49:23 +01:00
parent 0d342f526e
commit 6e44fb1015

View file

@ -543,7 +543,7 @@ void SplashScreen::manuallyResizeFBO(int width, int height)
osg::ref_ptr<osg::Camera> newCam = createFBOCamera();
// swap everything around
for (int i=0; i<_splashFBOCamera->getNumChildren(); ++i) {
for (unsigned int i=0; i < _splashFBOCamera->getNumChildren(); ++i) {
newCam->addChild(_splashFBOCamera->getChild(i));
}