From 632489bef5a7d413f4146efac5ae269843bf7f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 1 Apr 2024 09:51:57 -0700 Subject: [PATCH] Fixed #3274. --- src/renderer_vk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer_vk.cpp b/src/renderer_vk.cpp index c2bdb5b37..2b6fa09a3 100644 --- a/src/renderer_vk.cpp +++ b/src/renderer_vk.cpp @@ -550,7 +550,7 @@ VK_IMPORT_DEVICE }; BX_STATIC_ASSERT(VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE == BX_COUNTOF(s_allocScopeName)-1); - constexpr size_t kMinAlignment = 8; + constexpr size_t kMinAlignment = 16; static void* VKAPI_PTR allocationFunction(void* _userData, size_t _size, size_t _alignment, VkSystemAllocationScope _allocationScope) { @@ -572,7 +572,7 @@ VK_IMPORT_DEVICE } bx::AllocatorI* allocator = (bx::AllocatorI*)_userData; - allocator->realloc(_memory, 0, 0, "vkFree", 0); + allocator->realloc(_memory, 0, kMinAlignment, "vkFree", 0); } static void VKAPI_PTR internalAllocationNotification(void* _userData, size_t _size, VkInternalAllocationType _allocationType, VkSystemAllocationScope _allocationScope)