]> git.mxchange.org Git - flightgear.git/commitdiff
Fix issue with sky added in commit 25e0ab0b824c7a2254b9815976b4998174632058
authorFrederic Bouvier <fredfgfs01@free.fr>
Tue, 3 Apr 2012 06:41:28 +0000 (08:41 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Tue, 3 Apr 2012 06:41:28 +0000 (08:41 +0200)
src/Main/renderer.cxx

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