From ace81503d63fb5f06246b4a202ad0abd0fd4baae Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 2 Apr 2004 19:44:42 +0000 Subject: [PATCH] Match the changes in SimGear to fix an NVidia problem. --- src/Main/main.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index fd602e7bf..16c578da3 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -299,8 +299,9 @@ void trRenderFrame( void ) { // we need a white diffuse light for the phase of the moon ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, white ); - thesky->preDraw( cur_fdm_state->get_Altitude() * SG_FEET_TO_METER ); - thesky->drawUpperClouds( fog_exp2_density ); + thesky->preDraw( cur_fdm_state->get_Altitude() * SG_FEET_TO_METER, + fog_exp2_density ); + thesky->drawUpperClouds(); // draw the ssg scene // return to the desired diffuse color @@ -613,7 +614,8 @@ void fgRenderFrame() { // we need a white diffuse light for the phase of the moon ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, white ); - thesky->preDraw( cur_fdm_state->get_Altitude() * SG_FEET_TO_METER ); + thesky->preDraw( cur_fdm_state->get_Altitude() * SG_FEET_TO_METER, + fog_exp2_density ); // return to the desired diffuse color ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, l->scene_diffuse() ); } @@ -638,7 +640,7 @@ void fgRenderFrame() { // Disable depth buffer update, draw the clouds glDepthMask( GL_FALSE ); - thesky->drawUpperClouds( fog_exp2_density ); + thesky->drawUpperClouds(); if ( multi_pass_clouds ) { thesky->drawLowerClouds(); } @@ -662,7 +664,7 @@ void fgRenderFrame() { glDepthMask( GL_FALSE ); glStencilFunc( GL_EQUAL, 1, 1 ); glStencilOp( GL_KEEP, GL_KEEP, GL_KEEP ); - thesky->drawUpperClouds( fog_exp2_density ); + thesky->drawUpperClouds(); thesky->drawLowerClouds(); glDepthMask( GL_TRUE ); glDisable( GL_STENCIL_TEST ); -- 2.39.5