From 2e18b09bc984e246324f1986a801115d40b90894 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 3 Jan 2019 10:44:42 +0000 Subject: [PATCH] Fix typo that saved D3D12 indexed draw indirect index offset incorrectly --- renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp b/renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp index b5f477dde..c0d3fb834 100644 --- a/renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp +++ b/renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp @@ -3502,7 +3502,7 @@ void WrappedID3D12GraphicsCommandList2::PatchExecuteIndirect(BakedCmdListInfo &i curDraw.numIndices = args->IndexCountPerInstance; curDraw.numInstances = args->InstanceCount; curDraw.baseVertex = args->BaseVertexLocation; - curDraw.vertexOffset = args->StartIndexLocation; + curDraw.indexOffset = args->StartIndexLocation; curDraw.instanceOffset = args->StartInstanceLocation; curDraw.flags |= DrawFlags::Drawcall | DrawFlags::Instanced | DrawFlags::Indexed | DrawFlags::Indirect;