From 60cfafe027492deab236edf80333ee3de9fa5b76 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Sat, 25 May 2024 19:47:14 +0200 Subject: [PATCH] [d3d9] Fix strange type in dynamic vertex upload --- src/d3d9/d3d9_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index f91d1a43a03..e53c96a31ad 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -5283,7 +5283,7 @@ namespace dxvk { if (likely(copy.copyElementStride == copy.copyElementSize)) { std::memcpy(data, src, copy.copyBufferLength); } else { - for (uint32_t j = 0; j * copy.copyElementCount; j++) { + for (uint32_t j = 0; j < copy.copyElementCount; j++) { std::memcpy(data + j * copy.copyElementSize, src + j * copy.copyElementStride, copy.copyElementSize); } if (unlikely(copy.copyBufferLength > copy.copyElementCount * copy.copyElementSize)) {