]> git.mxchange.org Git - flightgear.git/commitdiff
Light model tweaks.
authorcurt <curt>
Wed, 28 Mar 2001 18:11:05 +0000 (18:11 +0000)
committercurt <curt>
Wed, 28 Mar 2001 18:11:05 +0000 (18:11 +0000)
src/Main/main.cxx

index e12dab4e5ae060471b27ebde5caf2193d2cf07ae..c0778afc2057790fd0796e640986b7a902ccac73 100644 (file)
@@ -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 );