]> git.mxchange.org Git - simgear.git/commitdiff
Revert "Hack to avoid redrawing the whole scene another time when only light volume...
authorFrederic Bouvier <fredfgfs01@free.fr>
Sat, 19 May 2012 18:41:58 +0000 (20:41 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sat, 19 May 2012 18:41:58 +0000 (20:41 +0200)
This reverts commit e692e7c119c67662f63fec7c3761baf7d4b4cef1.

simgear/scene/material/EffectCullVisitor.cxx

index 4559ee0b43b3c56dd1c1922dbbf6e48399ca731a..4f84552e56584dda0cc1ea3ee4ef583b869b0595 100644 (file)
@@ -52,8 +52,6 @@ CullVisitor* EffectCullVisitor::clone() const
 
 void EffectCullVisitor::apply(osg::Geode& node)
 {
-    if (node.getNodeMask() != simgear::MODELLIGHT_BIT ) // HACK
-        node.setNodeMask(node.getNodeMask() & ~simgear::MODELLIGHT_BIT);
     if (isCulled(node))
         return;
     EffectGeode *eg = dynamic_cast<EffectGeode*>(&node);