]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_init.cxx
Moved some of the low level scene graph construction code over to simgear.
[flightgear.git] / src / Main / fg_init.cxx
index adf2f936ba8f16eacd78856cbf226b3df194d373..9949478d420f7f723d797a650bff8be2cd616cb7 100644 (file)
@@ -1314,7 +1314,7 @@ bool fgInitSubsystems() {
 
     SGPath mpath( globals->get_fg_root() );
     mpath.append( "materials.xml" );
-    if ( ! material_lib.load( globals->get_fg_root(), mpath.str() ) ) {
+    if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str()) ) {
         SG_LOG( SG_GENERAL, SG_ALERT, "Error loading material lib!" );
         exit(-1);
     }