Преглед изворни кода

Merge branch 'master' of github.com:bkaradzic/bgfx

Branimir Karadžić пре 7 година
родитељ
комит
a195a03187
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/renderer_d3d12.cpp

+ 1 - 1
src/renderer_d3d12.cpp

@@ -461,7 +461,7 @@ namespace bgfx { namespace d3d12
 			void* ptr;
 			DX_CHECK(resource->Map(0, NULL, &ptr) );
 			D3D12_RESOURCE_ALLOCATION_INFO rai = _device->GetResourceAllocationInfo(1, 1, _resourceDesc);
-			bx::memSet(ptr, 0, rai.SizeInBytes);
+			bx::memSet(ptr, 0, size_t(rai.SizeInBytes) );
 			resource->Unmap(0, NULL);
 		}