X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fpanel.cxx;h=9c39626ee6bd1dd4250047400a198064a1169b36;hb=8e5f3ac8a333a971d7f8104a387426c3bc47a014;hp=be2f12570e8fb3d336e9e79d0c68ccee5b2a0155;hpb=ff800ecfd0d9c191c3102052c03f369061228761;p=flightgear.git diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index be2f12570..9c39626ee 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -122,11 +122,7 @@ FGTextureManager::createTexture (const string &relativePath, bool staticTexture) { osg::Texture2D* texture = _textureMap[relativePath].get(); if (texture == 0) { - SG_LOG( SG_COCKPIT, SG_DEBUG, - "Texture " << relativePath << " does not yet exist" ); - SGPath tpath(globals->get_fg_root()); - tpath.append(relativePath); - + SGPath tpath = globals->resolve_aircraft_path(relativePath); texture = SGLoadTexture2D(staticTexture, tpath); _textureMap[relativePath] = texture;