Skip to content

Commit

Permalink
[d3d9] Fix strange type in dynamic vertex upload
Browse files Browse the repository at this point in the history
  • Loading branch information
K0bin authored and misyltoad committed May 26, 2024
1 parent 8898028 commit 60cfafe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d9/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 60cfafe

Please sign in to comment.