1
0
Fork 0

Remove obsolete pre-OSG 3.4 code

This commit is contained in:
James Turner 2022-03-11 13:18:12 +00:00
parent da946fb14c
commit a9e09a0ae4

View file

@ -661,6 +661,10 @@ void SplashScreen::updateTipText()
_haveSetStartupTip = true;
FGLocale* locale = globals->get_locale();
const int tipCount = locale->getLocalizedStringCount("tip", "tips");
if (tipCount == 0) {
return;
}
int tipIndex = globals->get_props()->getIntValue("/sim/session",0) % tipCount;
std::string tipText = locale->getLocalizedStringWithIndex("tip", "tips", tipIndex);
@ -668,24 +672,6 @@ void SplashScreen::updateTipText()
}
}
// remove once we require OSG 3.4
void SplashScreen::manuallyResizeFBO(int width, int height)
{
_splashFBOTexture->setTextureSize(width, height);
_splashFBOTexture->dirtyTextureObject();
osg::ref_ptr<osg::Camera> newCam = createFBOCamera();
// swap everything around
for (unsigned int i=0; i < _splashFBOCamera->getNumChildren(); ++i) {
newCam->addChild(_splashFBOCamera->getChild(i));
}
addChild(newCam);
removeChild(_splashFBOCamera);
_splashFBOCamera = newCam;
}
void SplashScreen::resize( int width, int height )
{
if (getNumChildren() == 0) {