Don't look for the splash screen font in the aircraft dir
The previous way only worked because after trying SGPath(aContext, aResource), ResourceManager::findPath() tries all providers, among which there is a BasePathProvider with $FG_ROOT as its base... provider which doesn't use the 'aContext' argument at all.
This commit is contained in:
parent
c24065fdce
commit
36dd57f6f4
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ SplashScreen::TextItem *SplashScreen::addText(osg::Geode* geode ,
|
|||
const osg::Vec4& textColor,
|
||||
const std::string &fontFace )
|
||||
{
|
||||
SGPath path = globals->resolve_resource_path(fontFace);
|
||||
SGPath path = globals->resolve_maybe_aircraft_path(fontFace);
|
||||
|
||||
TextItem item;
|
||||
osg::ref_ptr<osgText::Text> t = new osgText::Text;
|
||||
|
|
Loading…
Add table
Reference in a new issue