[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
1 changed files with 1 additions and 1 deletions

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(); }