Reorginize the code just before fgMainLoop a bit so that the lighting update actually has any effect
This commit is contained in:
parent
19b61eec1e
commit
15f45ad9a5
1 changed files with 2 additions and 2 deletions
|
@ -1386,13 +1386,13 @@ static void fgIdleFunction ( void ) {
|
||||||
} else if ( idle_state == 6 ) {
|
} else if ( idle_state == 6 ) {
|
||||||
// sleep(1);
|
// sleep(1);
|
||||||
|
|
||||||
fgUpdateSkyAndLightingParams();
|
|
||||||
|
|
||||||
idle_state = 1000;
|
idle_state = 1000;
|
||||||
|
|
||||||
SG_LOG( SG_GENERAL, SG_INFO, "Panel visible = " << fgPanelVisible() );
|
SG_LOG( SG_GENERAL, SG_INFO, "Panel visible = " << fgPanelVisible() );
|
||||||
fgReshape( fgGetInt("/sim/startup/xsize"),
|
fgReshape( fgGetInt("/sim/startup/xsize"),
|
||||||
fgGetInt("/sim/startup/ysize") );
|
fgGetInt("/sim/startup/ysize") );
|
||||||
|
|
||||||
|
fgUpdateSkyAndLightingParams();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( idle_state == 1000 ) {
|
if ( idle_state == 1000 ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue