Fix the validation error for buffer copy

This commit is contained in:
Robin Liu 2020-01-07 17:23:50 -05:00
parent 7a2dac7e30
commit 5a6170e1e9

View file

@ -416,7 +416,7 @@ namespace vks
VK_CHECK_RESULT(vkAllocateMemory(logicalDevice, &memAlloc, nullptr, &buffer->memory));
buffer->alignment = memReqs.alignment;
buffer->size = memAlloc.allocationSize;
buffer->size = size;
buffer->usageFlags = usageFlags;
buffer->memoryPropertyFlags = memoryPropertyFlags;