Fix boolean test

pull/186/head
scrawl 8 years ago
parent e987fe85d0
commit 3d58ba7301

@ -1057,7 +1057,7 @@ void Optimizer::MergeGeometryVisitor::checkAllowedToMerge()
{ {
osg::StateSet* stateSet = *it; osg::StateSet* stateSet = *it;
osg::StateSet::RenderBinMode mode = stateSet->getRenderBinMode(); osg::StateSet::RenderBinMode mode = stateSet->getRenderBinMode();
if (override && (!mode & osg::StateSet::PROTECTED_RENDERBIN_DETAILS)) if (override && !(mode & osg::StateSet::PROTECTED_RENDERBIN_DETAILS))
continue; continue;
if (mode & osg::StateSet::USE_RENDERBIN_DETAILS) if (mode & osg::StateSet::USE_RENDERBIN_DETAILS)
renderingHint = stateSet->getRenderingHint(); renderingHint = stateSet->getRenderingHint();

Loading…
Cancel
Save