diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 20a33124..613b3392 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -1416,7 +1416,8 @@ namespace dxvk { } else { cmdData = EmitCsCmd( [] (DxvkContext* ctx, const D3D11CmdDrawIndirectData* data) { - ctx->drawIndexedIndirect(data->offset, data->count, stride); + ctx->drawIndexedIndirect(data->offset, data->count, + sizeof(VkDrawIndexedIndirectCommand)); }); cmdData->type = D3D11CmdType::DrawIndirectIndexed; @@ -1447,7 +1448,8 @@ namespace dxvk { } else { cmdData = EmitCsCmd( [] (DxvkContext* ctx, const D3D11CmdDrawIndirectData* data) { - ctx->drawIndirect(data->offset, data->count, stride); + ctx->drawIndirect(data->offset, data->count, + sizeof(VkDrawIndirectCommand)); }); cmdData->type = D3D11CmdType::DrawIndirect;