#endif
#include <simgear/compiler.h>
-
+#include <plib/ul.h>
#include <Main/main.hxx>
{
// 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 );