diff --git a/src/Airports/AirportBuilder.cxx b/src/Airports/AirportBuilder.cxx index 51462a08f..79434c304 100644 --- a/src/Airports/AirportBuilder.cxx +++ b/src/Airports/AirportBuilder.cxx @@ -584,7 +584,7 @@ osg::ref_ptr AirportBuilder::getMaterialEffect(std::string material, con if (sgOpts->getMaterialLib()) { const SGGeod loc = SGGeod(sgOpts->getLocation()); - SGMaterialCache* matcache = sgOpts->getMaterialLib()->generateMatCache(loc); + SGMaterialCache* matcache = sgOpts->getMaterialLib()->generateMatCache(loc, sgOpts); SGMaterial* mat = matcache->find(material); delete matcache;