vulkan: fix cpu buffer destroy

This commit is contained in:
luboslenco
2026-05-02 16:53:32 +02:00
parent c817d6f12c
commit 90bee8dbdb
+2
View File
@@ -1879,6 +1879,8 @@ void gpu_vertex_buffer_unlock(gpu_buffer_t *buffer) {
buffers_to_destroy[buffers_to_destroy_count] = buffer->impl.cpu_buf;
buffer_memories_to_destroy[buffers_to_destroy_count] = buffer->impl.cpu_mem;
buffers_to_destroy_count++;
buffer->impl.cpu_buf = NULL;
buffer->impl.cpu_mem = VK_NULL_HANDLE;
}
}