Sitelet https://github.com/GameTechDev/IntroductionToVulkan/commit/42eb048187d62a98eb9b1a612e2b2b6968af57cc
Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Commit 42eb048

Browse files
committed
Fixed bug in Tutorial07 in wrong data size provided during copy operation.
1 parent d5a6671 commit 42eb048

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Project/Tutorial07/Tutorial07.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ namespace ApiWithoutSecrets {
493493
VkBufferCopy buffer_copy_info = {
494494
0, // VkDeviceSize srcOffset
495495
0, // VkDeviceSize dstOffset
496-
Vulkan.VertexBuffer.Size // VkDeviceSize size
496+
Vulkan.UniformBuffer.Size // VkDeviceSize size
497497
};
498498
vkCmdCopyBuffer( command_buffer, Vulkan.StagingBuffer.Handle, Vulkan.UniformBuffer.Handle, 1, &buffer_copy_info );
499499

0 commit comments

Comments
 (0)