]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/tileentry.cxx
Boris Koenig:
[flightgear.git] / src / Scenery / tileentry.cxx
index be3026ec4b53e5172bea83a22460f4fd9883e1d5..3ccf0e79df09ba3fa51c8c6ea3aaf7e687697306 100644 (file)
@@ -1006,7 +1006,9 @@ FGTileEntry::add_ssg_nodes( ssgBranch *terrain_branch,
     // bump up the ref count so we can remove this later without
     // having ssg try to free the memory.
 #if PLIB_VERSION > 183
-    makeDList( terra_transform );
+    if ( fgGetBool( "/sim/rendering/use-display-list", true ) ) {
+        makeDList( terra_transform );
+    }
 #endif
 
     terra_transform->ref();