Fix to CullVisitor::popCullingSet().
This commit is contained in:
parent
ff7a7931fe
commit
0732701e9d
@ -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()));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user