From 84f5306f57a09815f7bd19c4b414695f0d1637ec Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 31 Dec 2020 18:42:05 -0800 Subject: Fixed 32-bit build --- Graphics/GraphicsEngineD3D12/src/TextureD3D12Impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/src/TextureD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/TextureD3D12Impl.cpp index 496255e5..03be0852 100644 --- a/Graphics/GraphicsEngineD3D12/src/TextureD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/TextureD3D12Impl.cpp @@ -370,7 +370,7 @@ TextureD3D12Impl::TextureD3D12Impl(IReferenceCounters* pRefCounters, ); } } - D3D12_RANGE FlushRange{0, stagingBufferSize}; + D3D12_RANGE FlushRange{0, static_cast(stagingBufferSize)}; m_pd3d12Resource->Unmap(0, &FlushRange); } } -- cgit v1.2.3