Browse Source

Build: Fixing a compile error on Linux

BearishSun 8 years ago
parent
commit
88cafca77a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/RenderBeast/BsLightProbes.cpp

+ 2 - 2
Source/RenderBeast/BsLightProbes.cpp

@@ -759,7 +759,7 @@ namespace bs { namespace ct
 
 
 	void LightProbes::resizeTetrahedronBuffer(UINT32 count)
 	void LightProbes::resizeTetrahedronBuffer(UINT32 count)
 	{
 	{
-		static constexpr UINT32 ELEMENT_SIZE = Math::divideAndRoundUp(sizeof(TetrahedronDataGPU), 4ULL);
+		static constexpr UINT32 ELEMENT_SIZE = Math::divideAndRoundUp((UINT32)sizeof(TetrahedronDataGPU), 4U);
 
 
 		GPU_BUFFER_DESC desc;
 		GPU_BUFFER_DESC desc;
 		desc.type = GBT_STANDARD;
 		desc.type = GBT_STANDARD;
@@ -774,7 +774,7 @@ namespace bs { namespace ct
 
 
 	void LightProbes::resizeTetrahedronFaceBuffer(UINT32 count)
 	void LightProbes::resizeTetrahedronFaceBuffer(UINT32 count)
 	{
 	{
-		static constexpr UINT32 ELEMENT_SIZE = Math::divideAndRoundUp(sizeof(TetrahedronFaceDataGPU), 4ULL);
+		static constexpr UINT32 ELEMENT_SIZE = Math::divideAndRoundUp((UINT32)sizeof(TetrahedronFaceDataGPU), 4U);
 
 
 		GPU_BUFFER_DESC desc;
 		GPU_BUFFER_DESC desc;
 		desc.type = GBT_STANDARD;
 		desc.type = GBT_STANDARD;