X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fsplash.cxx;h=19b12348849d43277aaeebbb1979aa3ff6cffd34;hb=fdbfd6fd0b789eecf2c532d048a75d15f8d35ad8;hp=403617891f2027276978b7110de7146a8bcfc845;hpb=b5c46a8d59120f18b0bc268af72ecb6d3a75b3e3;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()));