From 89b06191df195bb6aef84ddd735d118069047dfb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 17:50:32 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/mbgl/vulkan/buffer_resource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mbgl/vulkan/buffer_resource.cpp b/src/mbgl/vulkan/buffer_resource.cpp index a246473468e..b920627a55f 100644 --- a/src/mbgl/vulkan/buffer_resource.cpp +++ b/src/mbgl/vulkan/buffer_resource.cpp @@ -64,8 +64,8 @@ BufferResource::BufferResource( vk::DeviceSize align = 0; if (usage & VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT) { align = deviceProps.limits.minUniformBufferOffsetAlignment; - } - + } + if (usage & VK_BUFFER_USAGE_STORAGE_BUFFER_BIT) { align = align ? std::lcm(align, deviceProps.limits.minStorageBufferOffsetAlignment) : deviceProps.limits.minStorageBufferOffsetAlignment;