]> git.mxchange.org Git - flightgear.git/commitdiff
Check for the plib version when using display lists, just to be sure.
authorehofman <ehofman>
Sun, 10 Oct 2004 19:06:32 +0000 (19:06 +0000)
committerehofman <ehofman>
Sun, 10 Oct 2004 19:06:32 +0000 (19:06 +0000)
src/Scenery/tileentry.cxx

index 8b987b0ad5a5253f38fc14f0c851d2d510799340..108e6d0c831835dd0d15d0d7fc2d0997db2a08bc 100644 (file)
@@ -1005,7 +1005,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 );
+#endif
 
     terra_transform->ref();
     terrain_branch->addKid( terra_transform );