From 34b5c1a1b9402262a713c1cdbf0c79c8333acfe4 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 29 Jan 2004 18:25:55 +0000 Subject: [PATCH] Activate the driver fog workaround again. It doesn't seem to be solved yet. --- simgear/scene/sky/moon.cxx | 2 +- simgear/scene/sky/sky.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5