Moved reset to 0 of _createReuseMatrixIndex from CullVistor.cpp to CullStack.cpp so that
CullStack::reset works correctly for all subclasses - fixing a memory consumption issue with occluders
This commit is contained in:
@@ -59,6 +59,8 @@ void CullStack::reset()
|
||||
(lookVector.z()>=0?4:0);
|
||||
|
||||
_bbCornerNear = (~_bbCornerFar)&7;
|
||||
|
||||
_currentReuseMatrixIndex=0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -142,7 +142,6 @@ void CullVisitor::reset()
|
||||
}
|
||||
|
||||
// reset the resuse lists.
|
||||
_currentReuseMatrixIndex = 0;
|
||||
_currentReuseRenderLeafIndex = 0;
|
||||
|
||||
_nearPlaneCandidateMap.clear();
|
||||
|
||||
Reference in New Issue
Block a user