Merge branch 'master' of https://github.com/highfidelity/hifi into debone

This commit is contained in:
Andrzej Kapolka 2014-01-16 13:55:28 -08:00
commit cf40e76767

View file

@ -922,10 +922,7 @@ int VoxelSystem::newTreeToArrays(VoxelTreeElement* voxel) {
}
}
// for either voxels that should not render, or those that should render and are in view
// update their geometry in the array.if the voxel "should render" but is not in view, then
// it actually doesn't need to be rendered
if (!shouldRender || voxel->isInView(*_viewFrustum)) {
// update their geometry in the array. depending on our over all mode (fullVBO or not) we will reuse or not reuse the index
if (_writeRenderFullVBO) {
const bool DONT_REUSE_INDEX = false;
const bool FORCE_REDRAW = true;
@ -935,7 +932,6 @@ int VoxelSystem::newTreeToArrays(VoxelTreeElement* voxel) {
const bool DONT_FORCE_REDRAW = false;
voxelsUpdated += updateNodeInArrays(voxel, REUSE_INDEX, DONT_FORCE_REDRAW);
}
}
voxel->clearDirtyBit(); // clear the dirty bit, do this before we potentially delete things.
return voxelsUpdated;