From 092d2aa6a0b10c52795a34ea0e1f2f5721656da1 Mon Sep 17 00:00:00 2001 From: David Williams Date: Thu, 24 Mar 2011 23:00:28 +0000 Subject: [PATCH] Moved a comment, only because I forgot to save this file earlier. It's not an important change... --- library/PolyVoxCore/include/Volume.inl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/PolyVoxCore/include/Volume.inl b/library/PolyVoxCore/include/Volume.inl index 2b8c0e67..c21ea0ad 100644 --- a/library/PolyVoxCore/include/Volume.inl +++ b/library/PolyVoxCore/include/Volume.inl @@ -386,13 +386,13 @@ namespace PolyVox { Vector3DInt32 pos(x,y,z); typename std::map::iterator itBlock = m_pBlocks.find(pos); - - // If the block is already loaded then we don't load it again. This means it does not get uncompressed, - // whereas if we were to call getUncompressedBlock() regardless then it would also get uncompressed. - // This might be nice, but on the prefetch region could be bigger than the uncompressed cache size. - // This would limit the amount of prefetching we could do. + if(itBlock != m_pBlocks.end()) { + // If the block is already loaded then we don't load it again. This means it does not get uncompressed, + // whereas if we were to call getUncompressedBlock() regardless then it would also get uncompressed. + // This might be nice, but on the prefetch region could be bigger than the uncompressed cache size. + // This would limit the amount of prefetching we could do. continue; }