From: ehofman Date: Fri, 15 Aug 2003 17:47:34 +0000 (+0000) Subject: Work around a problem in certain NVidia adapters hat don't support fgPushAttrib(FG_FO... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be863ee2408dcdecc9ba3f74669b73fde221046a;p=flightgear.git Work around a problem in certain NVidia adapters hat don't support fgPushAttrib(FG_FOG_BIT) --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index a0a2948df..d557d237d 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -736,6 +736,12 @@ void fgRenderFrame() { // return to the desired diffuse color ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, l->scene_diffuse ); + + // FIXME: This should not be needed, but at this time (08/15/2003) + // certain NVidia drivers don't seem to implement + // fgPushAttrib(FG_FOG_BIT) properly. The result is that + // there is not fog when looking at the sun. + glFogf ( GL_FOG_DENSITY, fog_exp2_density ); } // draw the ssg scene