From 7f6466d6f1d622457eb38e1c0e54b2ed1448be0e Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 17 Oct 2004 17:23:19 +0000 Subject: [PATCH] Frederic Bouvier: This is a patch to make display list usage optional. They are on by default. Use --prop:/sim/rendering/use-display-list=false to use immediate mode. There is also a change in exception handling in main.cxx and bootstrap.cxx --- src/Scenery/tileentry.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index be3026ec4..3ccf0e79d 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -1006,7 +1006,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 ); + if ( fgGetBool( "/sim/rendering/use-display-list", true ) ) { + makeDList( terra_transform ); + } #endif terra_transform->ref();