From 539341a96f8c4bd9deecbfbb697c4b174d16dc31 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 21 Mar 2017 19:07:39 +0000 Subject: [PATCH] 32-bit compile fix --- renderdoc/driver/d3d12/d3d12_debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/d3d12/d3d12_debug.cpp b/renderdoc/driver/d3d12/d3d12_debug.cpp index 36dd77ed7..adadcef78 100644 --- a/renderdoc/driver/d3d12/d3d12_debug.cpp +++ b/renderdoc/driver/d3d12/d3d12_debug.cpp @@ -4402,7 +4402,7 @@ void D3D12DebugManager::InitPostVSBuffers(uint32_t eventID) { // reserve space for enough 'buffer filled size' locations view.BufferLocation = m_SOBuffer->GetGPUVirtualAddress() + - AlignUp(drawcall->numInstances * sizeof(UINT64), 64ULL); + AlignUp(uint64_t(drawcall->numInstances * sizeof(UINT64)), 64ULL); // do incremental draws to get the output size. We have to do this O(N^2) style because // there's no way to replay only a single instance. We have to replay 1, 2, 3, ... N instances