From d28657bd4a4cb703c33897cfbe1fdb5790027fe0 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 20 Mar 2017 19:13:26 +0100 Subject: [PATCH] Set vertexOffset not baseVertex with offset in DrawInstanced() --- 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 1c74b8156..efcca4508 100644 --- a/renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp +++ b/renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp @@ -2823,7 +2823,7 @@ bool WrappedID3D12GraphicsCommandList::Serialise_DrawInstanced(UINT VertexCountP draw.numIndices = vtxCount; draw.numInstances = instCount; draw.indexOffset = 0; - draw.baseVertex = startVtx; + draw.vertexOffset = startVtx; draw.instanceOffset = startInst; draw.flags |= eDraw_Drawcall | eDraw_Instanced;