Check for the plib version when using display lists, just to be sure.
This commit is contained in:
parent
f61014c2ea
commit
b7afe856c3
1 changed files with 2 additions and 0 deletions
|
@ -1005,7 +1005,9 @@ FGTileEntry::add_ssg_nodes( ssgBranch *terrain_branch,
|
||||||
{
|
{
|
||||||
// bump up the ref count so we can remove this later without
|
// bump up the ref count so we can remove this later without
|
||||||
// having ssg try to free the memory.
|
// having ssg try to free the memory.
|
||||||
|
#if PLIB_VERSION > 183
|
||||||
makeDList( terra_transform );
|
makeDList( terra_transform );
|
||||||
|
#endif
|
||||||
|
|
||||||
terra_transform->ref();
|
terra_transform->ref();
|
||||||
terrain_branch->addKid( terra_transform );
|
terrain_branch->addKid( terra_transform );
|
||||||
|
|
Loading…
Add table
Reference in a new issue