]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/renderer.cxx
Add a lower-bound type navaid lookup, and the ability to specify navaid type in the...
[flightgear.git] / src / Main / renderer.cxx
index 99b3c79fbccf0ed5b3a65a4e3b5aefb12397c97d..5b704cc52ec9aefb16d8ca31616c5224bb612a5f 100644 (file)
@@ -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() );