From: ehofman Date: Fri, 2 Apr 2004 16:50:38 +0000 (+0000) Subject: Frederic Bouvier: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c616bb5bd3c5b7380a86c5ddb59e7623d512227;p=flightgear.git Frederic Bouvier: Cure the performance penalty that leads to draw the aircraft twice. Also cure the transparency bug over the aircraft. --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 57f1713e5..fd602e7bf 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -633,6 +633,7 @@ void fgRenderFrame() { // Draw the terrain FGTileMgr::set_tile_filter( true ); sgSetModelFilter( false ); + globals->get_aircraft_model()->select( false ); ssgCullAndDraw( globals->get_scenery()->get_scene_graph() ); // Disable depth buffer update, draw the clouds @@ -652,7 +653,6 @@ void fgRenderFrame() { } FGTileMgr::set_tile_filter( false ); sgSetModelFilter( true ); - globals->get_aircraft_model()->select( false ); ssgCullAndDraw( globals->get_scenery()->get_scene_graph() ); if ( multi_pass_clouds ) {