Skip to content

Commit 60cfafe

Browse files
K0binmisyltoad
authored andcommitted
[d3d9] Fix strange type in dynamic vertex upload
1 parent 8898028 commit 60cfafe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/d3d9/d3d9_device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5283,7 +5283,7 @@ namespace dxvk {
52835283
if (likely(copy.copyElementStride == copy.copyElementSize)) {
52845284
std::memcpy(data, src, copy.copyBufferLength);
52855285
} else {
5286-
for (uint32_t j = 0; j * copy.copyElementCount; j++) {
5286+
for (uint32_t j = 0; j < copy.copyElementCount; j++) {
52875287
std::memcpy(data + j * copy.copyElementSize, src + j * copy.copyElementStride, copy.copyElementSize);
52885288
}
52895289
if (unlikely(copy.copyBufferLength > copy.copyElementCount * copy.copyElementSize)) {

0 commit comments

Comments
 (0)