More fixing/tidying of test, related to removing volume size limit.
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ namespace PolyVox
|
||||
|
||||
// Allocate the data
|
||||
const uint32_t uNoOfVoxels = m_uSideLength * m_uSideLength * m_uSideLength;
|
||||
m_tData = new VoxelType[uNoOfVoxels];
|
||||
m_tData = new VoxelType[uNoOfVoxels];
|
||||
|
||||
// Pass the chunk to the Pager to give it a chance to initialise it with any data
|
||||
if (m_pPager)
|
||||
|
Reference in New Issue
Block a user