]> git.mxchange.org Git - flightgear.git/commitdiff
Be sure to not render light volumes in the classical renderer
authorFrederic Bouvier <fredfgfs01@free.fr>
Sat, 31 Mar 2012 18:39:47 +0000 (20:39 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sat, 31 Mar 2012 18:39:47 +0000 (20:39 +0200)
src/Main/renderer.cxx

index bcd9716a1ea819abb9f8b5f0a6a3bfcdf13f1068..e04d6ab1daf7e9181cfd6826bc995a2b660452d5 100644 (file)
@@ -1714,7 +1714,7 @@ FGRenderer::update( ) {
                              l->get_sun_angle()*SGD_RADIANS_TO_DEGREES);
     mUpdateVisitor->setVisibility(actual_visibility);
     simgear::GroundLightManager::instance()->update(mUpdateVisitor.get());
-    osg::Node::NodeMask cullMask = ~simgear::LIGHTS_BITS & ~simgear::PICK_BIT;
+    osg::Node::NodeMask cullMask = ~simgear::LIGHTS_BITS & ~simgear::PICK_BIT & ~simgear::MODELLIGHT_BIT;
     cullMask |= simgear::GroundLightManager::instance()
         ->getLightNodeMask(mUpdateVisitor.get());
     if (_panel_hotspots->getBoolValue())