1
0
Fork 0

Frederic Bouvier:

Cure the performance penalty that leads to draw the aircraft twice.
Also cure the transparency bug over the aircraft.
This commit is contained in:
ehofman 2004-04-02 16:50:38 +00:00
parent aa2541a776
commit 7c616bb5bd

View file

@ -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 ) {