diff --git a/library/PolyVoxCore/include/PolyVoxCore/AmbientOcclusionCalculator.h b/library/PolyVoxCore/include/PolyVoxCore/AmbientOcclusionCalculator.h index 3de70fa6..8047b2c1 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/AmbientOcclusionCalculator.h +++ b/library/PolyVoxCore/include/PolyVoxCore/AmbientOcclusionCalculator.h @@ -56,7 +56,7 @@ namespace PolyVox bool operator()(const SimpleVolume::Sampler& sampler) { uint8_t sample = sampler.getVoxel(); - bool func = (*(mIsVoxelTransparentCallback))(sample); + bool func = mIsVoxelTransparentCallback(sample); return func; }