From 5ca6178e106a255c814d855dcbdcda205fb63c30 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Mon, 31 Aug 2009 21:52:46 +0000 Subject: [PATCH] Commit commented out version of the code which fixes the build on Linux --- library/PolyVoxCore/include/PolyVoxImpl/Block.inl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/PolyVoxCore/include/PolyVoxImpl/Block.inl b/library/PolyVoxCore/include/PolyVoxImpl/Block.inl index 5a241323..b17c0fe7 100644 --- a/library/PolyVoxCore/include/PolyVoxImpl/Block.inl +++ b/library/PolyVoxCore/include/PolyVoxImpl/Block.inl @@ -147,6 +147,12 @@ namespace PolyVox void Block::fill(VoxelType tValue) { memset(m_tData, (int)tValue, m_uSideLength * m_uSideLength * m_uSideLength * sizeof(VoxelType)); + //This next block fixes the compile error on Linux + /*const uint32_t uNoOfVoxels = m_uSideLength * m_uSideLength * m_uSideLength; + for(uint32_t ct = 0; ct < uNoOfVoxels; ++ct) + { + m_tData[ct] = tValue; + }*/ } template