From: ehofman Date: Thu, 29 Jan 2004 18:25:55 +0000 (+0000) Subject: Activate the driver fog workaround again. It doesn't seem to be solved yet. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=34b5c1a1b9402262a713c1cdbf0c79c8333acfe4;p=simgear.git Activate the driver fog workaround again. It doesn't seem to be solved yet. --- diff --git a/simgear/scene/sky/moon.cxx b/simgear/scene/sky/moon.cxx index 3514f705..fdf1fc87 100644 --- a/simgear/scene/sky/moon.cxx +++ b/simgear/scene/sky/moon.cxx @@ -65,7 +65,7 @@ static int sgMoonOrbPostDraw( ssgEntity *e ) { // Some drivers don't properly reset glBendFunc with a // glPopAttrib() so we reset it to the 'default' here. - // glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ) ; + glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ) ; glPopAttrib(); // cout << "pop error = " << glGetError() << endl; diff --git a/simgear/scene/sky/sky.cxx b/simgear/scene/sky/sky.cxx index 1da027a0..fe6bb0ed 100644 --- a/simgear/scene/sky/sky.cxx +++ b/simgear/scene/sky/sky.cxx @@ -175,7 +175,7 @@ void SGSky::preDraw( float alt, float fog_exp2_density ) { // certain NVidia drivers don't seem to implement // glPushAttrib(FG_FOG_BIT) properly. The result is that // there is not fog when looking at the sun. - // glFogf ( GL_FOG_DENSITY, fog_exp2_density ); + glFogf ( GL_FOG_DENSITY, fog_exp2_density ); // if we are closer than this to a cloud layer, don't draw clouds static const float slop = 5.0;