X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fdestroyqueue.cpp;h=32ec5cff580bd32ce2e8e0c72d9c2f4a8d14e7c0;hb=a9e3cf282bd9c5c43e767552b73068e7a56765e2;hp=0c3e17c1a1831ecc2ab88534f33b8a0ca8bc7169;hpb=a16145549dc87c3b12671f797bd77b14bcc7786b;p=libs%2Fgl.git diff --git a/source/backends/vulkan/destroyqueue.cpp b/source/backends/vulkan/destroyqueue.cpp index 0c3e17c1..32ec5cff 100644 --- a/source/backends/vulkan/destroyqueue.cpp +++ b/source/backends/vulkan/destroyqueue.cpp @@ -66,7 +66,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 +74,8 @@ void DestroyQueue::tick() allocator.release(e.memory_id); queue.pop_front(); } + + ++current_frame; } } // namespace GL