X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fsplash.cxx;h=19b12348849d43277aaeebbb1979aa3ff6cffd34;hb=ab495d137084226b66badce500f166fb047eaaac;hp=403617891f2027276978b7110de7146a8bcfc845;hpb=ef152ee4113ca38526f4c9ed283d2d8ac5e47d67;p=flightgear.git diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index 403617891..19b123488 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()));