From e7d79e7ba25d99aab9642bf4beafbd38623046dc Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 28 Mar 2001 18:11:05 +0000 Subject: [PATCH] Light model tweaks. --- src/Main/main.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index e12dab4e5..c0778afc2 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -570,9 +570,9 @@ void fgRenderFrame( void ) { // set that to black and instead modify GL_LIGHT_MODEL_AMBIENT. GLfloat black[4] = { 0.0, 0.0, 0.0, 1.0 }; GLfloat white[4] = { 1.0, 1.0, 1.0, 1.0 }; - ssgGetLight( 0 ) -> setColour( GL_AMBIENT, black ); + glLightModelfv( GL_LIGHT_MODEL_AMBIENT, black ); - glLightModelfv( GL_LIGHT_MODEL_AMBIENT, l->scene_ambient ); + ssgGetLight( 0 ) -> setColour( GL_AMBIENT, l->scene_ambient ); ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, l->scene_diffuse ); // ssgGetLight( 0 ) -> setColour( GL_SPECULAR, l->scene_white ); -- 2.39.5