]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/tileentry.cxx
Boris Koenig:
[flightgear.git] / src / Scenery / tileentry.cxx
index 8b987b0ad5a5253f38fc14f0c851d2d510799340..3ccf0e79df09ba3fa51c8c6ea3aaf7e687697306 100644 (file)
@@ -26,7 +26,7 @@
 #endif
 
 #include <simgear/compiler.h>
-
+#include <plib/ul.h>
 #include <Main/main.hxx>
 
 
@@ -1005,7 +1005,11 @@ 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.
-    makeDList( terra_transform );
+#if PLIB_VERSION > 183
+    if ( fgGetBool( "/sim/rendering/use-display-list", true ) ) {
+        makeDList( terra_transform );
+    }
+#endif
 
     terra_transform->ref();
     terrain_branch->addKid( terra_transform );