Explorar o código

Bugfix: Fixed an issue that would produce invalid cbuffer size when non-4D array elements were present

BearishSun %!s(int64=8) %!d(string=hai) anos
pai
achega
4d64ae9408
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/BansheeD3D11RenderAPI/BsD3D11RenderAPI.cpp

+ 1 - 1
Source/BansheeD3D11RenderAPI/BsD3D11RenderAPI.cpp

@@ -1386,7 +1386,7 @@ namespace bs { namespace ct
 				if(param.type == GPDT_STRUCT)
 					size = Math::divideAndRoundUp(param.elementSize, 16U) * 4;
 				else
-					size = Math::divideAndRoundUp(typeInfo.size, 4U);
+					size = Math::divideAndRoundUp(typeInfo.size, 16U) * 4;
 
 				block.blockSize = Math::divideAndRoundUp(block.blockSize, 4U);