BlockVolume.inl:

- Reapply the fix from r572 since it got lost in the BlockVolume renaming.
- Include headers++

SurfaceExtractors.cpp:
- Add a newline to end of file to quieten gcc
This commit is contained in:
Matt Williams 2008-05-24 17:37:52 +00:00
parent 0b012cbd75
commit ff39fed7f8
2 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#pragma region Headers
#include "Block.h"
#include "Vector.h"
#include <cassert>
#include <cstring> //For memcpy
@ -209,7 +210,7 @@ namespace PolyVox
template <typename VoxelType>
Block<VoxelType>* BlockVolume<VoxelType>::getHomogenousBlock(VoxelType tHomogenousValue) const
{
std::map<VoxelType, Block<VoxelType>*>::iterator iterResult = m_pHomogenousBlocks.find(tHomogenousValue);
typename std::map<VoxelType, Block<VoxelType>*>::iterator iterResult = m_pHomogenousBlocks.find(tHomogenousValue);
if(iterResult == m_pHomogenousBlocks.end())
{
Block<VoxelType>* pBlock = new Block<VoxelType>(m_uBlockSideLengthPower);

View File

@ -813,4 +813,4 @@ namespace PolyVox
}
return result;
}
}
}