Simple optimization.

This commit is contained in:
David Williams 2015-05-24 21:17:09 +02:00
parent 304e3d8f7a
commit a34eda6250

View File

@ -97,7 +97,7 @@ namespace PolyVox
template <typename VoxelType>
VoxelType PagedVolume<VoxelType>::Sampler::getVoxel(void) const
{
return this->mVolume->getVoxel(this->mXPosInVolume, this->mYPosInVolume, this->mZPosInVolume);
return *mCurrentVoxel;
}
template <typename VoxelType>