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:
Robert Osfield
2006-08-12 18:19:43 +00:00
parent 132f9ead45
commit a16568254c
2 changed files with 2 additions and 1 deletions

View File

@@ -59,6 +59,8 @@ void CullStack::reset()
(lookVector.z()>=0?4:0);
_bbCornerNear = (~_bbCornerFar)&7;
_currentReuseMatrixIndex=0;
}

View File

@@ -142,7 +142,6 @@ void CullVisitor::reset()
}
// reset the resuse lists.
_currentReuseMatrixIndex = 0;
_currentReuseRenderLeafIndex = 0;
_nearPlaneCandidateMap.clear();