X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fsplash.cxx;h=9152fb26dcf2b2dc78bfc26009c3216c971c2462;hb=38226af24ec01e8f0a20d7fd73ef838a69f6ef25;hp=403617891f2027276978b7110de7146a8bcfc845;hpb=ef152ee4113ca38526f4c9ed283d2d8ac5e47d67;p=flightgear.git diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index 403617891..9152fb26d 100644 --- a/src/Main/splash.cxx +++ b/src/Main/splash.cxx @@ -197,9 +197,10 @@ static osg::Node* fgCreateSplashCamera() tpath.append( "Textures/Splash" ); tpath.concat( num_str ); tpath.concat( ".png" ); - } else - tpath.append( splash_texture ); - + } else { + tpath = globals->resolve_maybe_aircraft_path(splash_texture); + } + osg::Texture2D* splashTexture = new osg::Texture2D; splashTexture->setImage(osgDB::readImageFile(tpath.c_str())); @@ -354,11 +355,9 @@ osg::Node* fgCreateSplashNode() { void fgSplashInit () { SG_LOG( SG_GENERAL, SG_INFO, "Initializing splash screen" ); globals->get_renderer()->splashinit(); - fgRequestRedraw(); } void fgSplashProgress ( const char *text ) { SG_LOG( SG_GENERAL, SG_INFO, "Splash screen progress " << text ); fgSetString("/sim/startup/splash-progress-text", text); - fgRequestRedraw(); }