summaryrefslogtreecommitdiff
path: root/src/static-ui.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-08-14 11:29:48 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-08-14 11:46:02 -0400
commitebcae77b137a759c453b89a774ece5a755078a38 (patch)
tree4d2239e94bfbbd7bbe9b33cb33e8ca8262b99ea1 /src/static-ui.cpp
parent0b5f7059cc88d9ee18fa46eb7e6d9fb45ee65da8 (diff)
pke: HACK: avoid modifying in-use vulkan buffers
Replace me with a memory barrier helper fn.
Diffstat (limited to 'src/static-ui.cpp')
-rw-r--r--src/static-ui.cpp4
1 files changed, 2 insertions, 2 deletions
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<pke_ui_box_instance_buffer_item> &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;