From 3a655986e18eabd0df027c925498525285d12cbc Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 8 Nov 2005 10:00:24 +0000 Subject: [PATCH] Harald JOHNSEN: really disable fog --- src/Main/renderer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 99b3c79fb..5b704cc52 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -472,7 +472,8 @@ FGRenderer::update( bool refresh_camera_settings ) { glEnable( GL_FOG ); glFogi( GL_FOG_MODE, GL_EXP2 ); glFogfv( GL_FOG_COLOR, l->adj_fog_color() ); - } + } else + glDisable( GL_FOG ); // set sun/lighting parameters ssgGetLight( 0 ) -> setPosition( l->sun_vec() );