]> git.mxchange.org Git - flightgear.git/commitdiff
Csaba HALASZ: implement conditional (e.g. seasonal) texture loading at startup
authormfranz <mfranz>
Fri, 15 Feb 2008 17:54:23 +0000 (17:54 +0000)
committermfranz <mfranz>
Fri, 15 Feb 2008 17:54:23 +0000 (17:54 +0000)
src/Main/fg_init.cxx

index 4e8266478a44a12608eee8af555765057612d2af..38cd53071aedd356efe54155c352bb6e31adb480 100644 (file)
@@ -1614,7 +1614,8 @@ bool fgInitSubsystems() {
     SGPath mpath( globals->get_fg_root() );
     mpath.append( "materials.xml" );
     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!" );
         exit(-1);
     }