]> 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 b5566b0c292eed9a184688cc848c2c8cd7a15340..5b704cc52ec9aefb16d8ca31616c5224bb612a5f 100644 (file)
@@ -57,6 +57,7 @@
 #include <Time/light.hxx>
 #include <Time/light.hxx>
 #include <Aircraft/aircraft.hxx>
+// #include <Aircraft/replay.hxx>
 #include <Cockpit/panel.hxx>
 #include <Cockpit/cockpit.hxx>
 #include <Cockpit/hud.hxx>
@@ -66,7 +67,6 @@
 #include <Scenery/scenery.hxx>
 #include <Scenery/tilemgr.hxx>
 #include <ATC/ATCdisplay.hxx>
-#include <Replay/replay.hxx>
 #include <GUI/new_gui.hxx>
 
 #include "splash.hxx"
@@ -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() );