Fixes kdtree building

This commit is contained in:
Jordi
2017-05-31 13:30:50 +02:00
parent 79e764bd17
commit 8a2f1bc056
2 changed files with 8 additions and 10 deletions

View File

@@ -361,8 +361,6 @@ int BuildKdTree::divide(KdTree::BuildOptions& options, osg::BoundingBox& bb, int
while(left<right && (_centers[_primitiveIndices[right]][axis]>mid)) { --right; }
while(left<right && (_centers[_primitiveIndices[right]][axis]>mid)) { --right; }
if (left<right)
{
std::swap(_primitiveIndices[left], _primitiveIndices[right]);