1
0
Fork 0

Csaba HALASZ: implement conditional (e.g. seasonal) texture loading at startup

This commit is contained in:
mfranz 2008-02-15 17:54:23 +00:00
parent 79e251383b
commit b99a5465b0

View file

@ -1614,7 +1614,8 @@ bool fgInitSubsystems() {
SGPath mpath( globals->get_fg_root() ); SGPath mpath( globals->get_fg_root() );
mpath.append( "materials.xml" ); mpath.append( "materials.xml" );
string season = fgGetString("/sim/startup/season", "summer"); string season = fgGetString("/sim/startup/season", "summer");
if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str(), season.c_str()) ) { if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str(), season.c_str(),
globals->get_props()) ) {
SG_LOG( SG_GENERAL, SG_ALERT, "Error loading material lib!" ); SG_LOG( SG_GENERAL, SG_ALERT, "Error loading material lib!" );
exit(-1); exit(-1);
} }