Fix to CullVisitor::popCullingSet().

This commit is contained in:
Robert Osfield 2002-06-03 18:38:40 +00:00
parent ff7a7931fe
commit 0732701e9d

View File

@ -179,7 +179,8 @@ void CullVisitor::pushCullingSet()
_windowToModelFactorDirty = true;
_modelviewCullingStack.push_back(osgNew osg::CullingSet(*_projectionCullingStack.back(),*_modelviewStack.back()));
if (_modelviewStack.empty()) _modelviewCullingStack.push_back(_projectionCullingStack.back());
else _modelviewCullingStack.push_back(osgNew osg::CullingSet(*_projectionCullingStack.back(),*_modelviewStack.back()));
}