From 15f45ad9a5333a539b2bf9f59ef735d9e9adc483 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 17 Sep 2003 10:02:36 +0000 Subject: [PATCH] Reorginize the code just before fgMainLoop a bit so that the lighting update actually has any effect --- 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 0a6a53f91..cd85ac411 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -1386,13 +1386,13 @@ static void fgIdleFunction ( void ) { } else if ( idle_state == 6 ) { // sleep(1); - fgUpdateSkyAndLightingParams(); - idle_state = 1000; SG_LOG( SG_GENERAL, SG_INFO, "Panel visible = " << fgPanelVisible() ); fgReshape( fgGetInt("/sim/startup/xsize"), fgGetInt("/sim/startup/ysize") ); + + fgUpdateSkyAndLightingParams(); } if ( idle_state == 1000 ) { -- 2.39.5