We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8898028 commit 60cfafeCopy full SHA for 60cfafe
src/d3d9/d3d9_device.cpp
@@ -5283,7 +5283,7 @@ namespace dxvk {
5283
if (likely(copy.copyElementStride == copy.copyElementSize)) {
5284
std::memcpy(data, src, copy.copyBufferLength);
5285
} else {
5286
- for (uint32_t j = 0; j * copy.copyElementCount; j++) {
+ for (uint32_t j = 0; j < copy.copyElementCount; j++) {
5287
std::memcpy(data + j * copy.copyElementSize, src + j * copy.copyElementStride, copy.copyElementSize);
5288
}
5289
if (unlikely(copy.copyBufferLength > copy.copyElementCount * copy.copyElementSize)) {
0 commit comments