Index buffer size for copy command command

This commit is contained in:
saschawillems 2017-09-23 14:13:28 +02:00
parent 9af56b0ae0
commit e7b371eef3

View file

@ -321,7 +321,7 @@ public:
indexBufferSize);
VK_CHECK_RESULT(vkBeginCommandBuffer(copyCmd, &cmdBufInfo));
copyRegion.size = vertexBufferSize;
copyRegion.size = indexBufferSize;
vkCmdCopyBuffer(copyCmd, stagingBuffer, indexBuffer, 1, &copyRegion);
VK_CHECK_RESULT(vkEndCommandBuffer(copyCmd));