From: curt Date: Sun, 8 Jul 2001 23:38:56 +0000 (+0000) Subject: Fix a bug with old-style binary scenery compatibilty where no ground lighting X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82f9528927726b892a7c48ece91cd79d90c8b63f;p=flightgear.git Fix a bug with old-style binary scenery compatibilty where no ground lighting was generated. --- diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index 404ee80c1..3a9720eb1 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -540,10 +540,7 @@ FGTileEntry::load( const SGPath& base, bool is_base ) } else { // no .stg file so this must be old scenery - // fgObjLoad will generate ground lighting for us ... - ssgVertexArray *light_pts = new ssgVertexArray( 100 ); - - new_tile = obj_load( basename.str(), light_pts, is_base ); + new_tile = obj_load( basename.str(), light_pts, true ); // load custom objects SG_LOG( SG_TERRAIN, SG_DEBUG, "Checking for custom objects ..." );