From 2e0f99d49dd3f91bd5aed65585c330fd5fdc0b09 Mon Sep 17 00:00:00 2001 From: DrChat Date: Sun, 11 Feb 2018 20:44:17 -0600 Subject: [PATCH] [Vulkan UI] CircularBuffer: Actually use provided alignment --- src/xenia/ui/vulkan/circular_buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/ui/vulkan/circular_buffer.cc b/src/xenia/ui/vulkan/circular_buffer.cc index 0347413cc..05f3f7917 100644 --- a/src/xenia/ui/vulkan/circular_buffer.cc +++ b/src/xenia/ui/vulkan/circular_buffer.cc @@ -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(); }