From: ehofman Date: Sun, 10 Oct 2004 19:06:32 +0000 (+0000) Subject: Check for the plib version when using display lists, just to be sure. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b7afe856c3825427bb2b4c93fe9e44a543e9add7;p=flightgear.git Check for the plib version when using display lists, just to be sure. --- diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index 8b987b0ad..108e6d0c8 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -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 );