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