Fix typo that saved D3D12 indexed draw indirect index offset incorrectly

This commit is contained in:
baldurk committed 2019-01-03 12:22:28 +00:00
1 parent 09207c5de0
commit 2e18b09bc9
1 file changed
+1 -1
@@ -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;