GCC compile fixes
This commit is contained in:
		| @@ -28,6 +28,7 @@ freely, subject to the following restrictions: | ||||
| #include "PolyVoxImpl/TypeDef.h" | ||||
|  | ||||
| #include "PolyVoxCore/Array.h" | ||||
| #include "PolyVoxCore/Voxel.h" | ||||
|  | ||||
| #include <list> | ||||
| #include <stdexcept> //For runtime_error | ||||
|   | ||||
| @@ -41,7 +41,7 @@ namespace PolyVox | ||||
| 		{ | ||||
| 			//and if their density is above the threshold. | ||||
| 			VoxelType voxel = volData->getVoxelAt(v3dPos); | ||||
| 			VoxelType::DensityType tThreshold = (VoxelTypeTraits<VoxelType>::minDensity() + VoxelTypeTraits<VoxelType>::maxDensity()) / 2; | ||||
| 			typename VoxelType::DensityType tThreshold = (VoxelTypeTraits<VoxelType>::minDensity() + VoxelTypeTraits<VoxelType>::maxDensity()) / 2; | ||||
| 			if(voxel.getDensity() >= tThreshold) | ||||
| 			{ | ||||
| 				return false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user