[Vulkan UI] CircularBuffer: Actually use provided alignment

This commit is contained in:
DrChat 2018-02-11 20:44:17 -06:00
parent c9a5553fe9
commit 2e0f99d49d

View file

@ -42,7 +42,7 @@ CircularBuffer::CircularBuffer(VulkanDevice* device, VkBufferUsageFlags usage,
VkMemoryRequirements reqs;
vkGetBufferMemoryRequirements(*device_, gpu_buffer_, &reqs);
alignment_ = reqs.alignment;
alignment_ = xe::round_up(alignment, reqs.alignment);
}
CircularBuffer::~CircularBuffer() { Shutdown(); }