From: Frederic Bouvier Date: Tue, 3 Apr 2012 06:41:28 +0000 (+0200) Subject: Fix issue with sky added in commit 25e0ab0b824c7a2254b9815976b4998174632058 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f5e9619aaf2cf11c0589ed64abea450d739e7cf;p=flightgear.git Fix issue with sky added in commit 25e0ab0b824c7a2254b9815976b4998174632058 --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index d8c6d5e2b..b6a18c6bc 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -1470,7 +1470,8 @@ FGRenderer::setupView( void ) skyGroup->addChild(_sky->getPreRoot()); sunLight->addChild(skyGroup); mRoot->addChild(sceneGroup); - mRoot->addChild(sunLight); + if ( _classicalRenderer ) + mRoot->addChild(sunLight); // Clouds are added to the scene graph later stateSet = globals->get_scenery()->get_scene_graph()->getOrCreateStateSet();