Use proper buffer sizes

This commit is contained in:
Sascha Willems 2019-11-19 18:02:49 +01:00
parent f544895708
commit 39852c4a27

View file

@ -351,10 +351,10 @@ namespace vks
VkBufferCopy copyRegion{};
copyRegion.size = vertices.size;
copyRegion.size = vBufferSize;
vkCmdCopyBuffer(copyCmd, vertexStaging.buffer, vertices.buffer, 1, &copyRegion);
copyRegion.size = indices.size;
copyRegion.size = iBufferSize;
vkCmdCopyBuffer(copyCmd, indexStaging.buffer, indices.buffer, 1, &copyRegion);
device->flushCommandBuffer(copyCmd, copyQueue);