X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fdestroyqueue.cpp;h=929f89c6070196caee4ca9b17533bccdb16a6021;hb=d9c437291135255422c71918cd0cab8a735848af;hp=0c3e17c1a1831ecc2ab88534f33b8a0ca8bc7169;hpb=a16145549dc87c3b12671f797bd77b14bcc7786b;p=libs%2Fgl.git diff --git a/source/backends/vulkan/destroyqueue.cpp b/source/backends/vulkan/destroyqueue.cpp index 0c3e17c1..929f89c6 100644 --- a/source/backends/vulkan/destroyqueue.cpp +++ b/source/backends/vulkan/destroyqueue.cpp @@ -20,6 +20,11 @@ void DestroyQueue::destroy(VkBuffer handle, unsigned mem_id) destroy(handle, mem_id); } +void DestroyQueue::destroy(VkDescriptorPool handle) +{ + destroy(handle); +} + void DestroyQueue::destroy(VkFence handle) { destroy(handle); @@ -66,7 +71,6 @@ void DestroyQueue::tick() const VulkanFunctions &vk = device.get_functions(); MemoryAllocator &allocator = device.get_allocator(); - ++current_frame; while(!queue.empty() && current_frame>=queue.front().on_frame) { const Entry &e = queue.front(); @@ -75,6 +79,8 @@ void DestroyQueue::tick() allocator.release(e.memory_id); queue.pop_front(); } + + ++current_frame; } } // namespace GL