From ebcae77b137a759c453b89a774ece5a755078a38 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 14 Aug 2025 11:29:48 -0400 Subject: pke: HACK: avoid modifying in-use vulkan buffers Replace me with a memory barrier helper fn. --- src/static-ui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/static-ui.cpp') diff --git a/src/static-ui.cpp b/src/static-ui.cpp index 1179028..7e500d9 100644 --- a/src/static-ui.cpp +++ b/src/static-ui.cpp @@ -464,10 +464,10 @@ void pke_ui_update_instance_buffer(pk_arr_t &ar vkResult = vkBindBufferMemory(vkDevice, newBuffer, new_memory, 0); assert(vkResult == VK_SUCCESS); if (pke_ui_master.bindings.bd_instance.buffer != VK_NULL_HANDLE) { - vkDestroyBuffer(vkDevice, pke_ui_master.bindings.bd_instance.buffer, vkAllocator); + pkvk_queue_vk_buffer_destroy(pke_ui_master.bindings.bd_instance.buffer); } if (pke_ui_master.bindings.deviceMemoryInst != VK_NULL_HANDLE) { - vkFreeMemory(vkDevice, pke_ui_master.bindings.deviceMemoryInst, vkAllocator); + pkvk_queue_vk_memory_free(pke_ui_master.bindings.deviceMemoryInst); } pke_ui_master.bindings.bd_instance.buffer = newBuffer; pke_ui_master.bindings.deviceMemoryInst = new_memory; -- cgit v1.2.3