More fixing/tidying of test, related to removing volume size limit.

This commit is contained in:
David Williams
2015-03-01 08:14:30 +01:00
parent bfc7dfdc1b
commit e7f41b7e0f
4 changed files with 59 additions and 66 deletions

View File

@ -117,6 +117,11 @@ namespace PolyVox
else
{
POLYVOX_LOG_TRACE("No data found for " << region << " during paging in.");
// Just fill with zeros. This feels hacky... perhaps we should just throw
// an exception and let the calling code handle it and fill with zeros.
uint32_t noOfVoxels = region.getWidthInVoxels() * region.getHeightInVoxels() * region.getDepthInVoxels();
std::fill(pChunk->getData(), pChunk->getData() + noOfVoxels, VoxelType());
}
}