From e665d896e3a1242662915d47550b7bf08a30147d Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 10 Jan 2019 18:26:20 +0100 Subject: [PATCH] [d3d11] Fix build errors on MSVC --- src/d3d11/d3d11_context.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;