From 3145020a62895548881dbb1886d46f191191124a Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Fri, 21 Jun 2024 12:34:08 +0200 Subject: [PATCH] [d3d9] Only change vertex offset draw parameters when necessary ... Only change it when the vertex data is actually dynamically uploaded. --- src/d3d9/d3d9_device.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 776dedb56..023322ef6 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -5307,11 +5307,13 @@ namespace dxvk { m_flags.set(D3D9DeviceFlag::DirtyVertexBuffers); } - // Change the draw call parameters to reflect the changed vertex buffers - if (NumIndices != 0) { - BaseVertexIndex = -FirstVertexIndex; - } else { - FirstVertexIndex = 0; + if (dynamicSysmemVBOs) { + // Change the draw call parameters to reflect the changed vertex buffers + if (NumIndices != 0) { + BaseVertexIndex = -FirstVertexIndex; + } else { + FirstVertexIndex = 0; + } } if (dynamicSysmemIBO) {