From 7543ef14b88bed93044992446da7ecb34a23c51a Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sun, 17 Oct 2021 10:48:14 +0200 Subject: [PATCH] Destroy fence --- examples/texturesparseresidency/texturesparseresidency.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/texturesparseresidency/texturesparseresidency.cpp b/examples/texturesparseresidency/texturesparseresidency.cpp index c652461e..4832a54a 100644 --- a/examples/texturesparseresidency/texturesparseresidency.cpp +++ b/examples/texturesparseresidency/texturesparseresidency.cpp @@ -787,6 +787,7 @@ void VulkanExample::fillRandomPages() VK_CHECK_RESULT(vkCreateFence(device, &fenceInfo, nullptr, &fence)); vkQueueBindSparse(queue, 1, &texture.bindSparseInfo, fence); vkWaitForFences(device, 1, &fence, VK_TRUE, UINT64_MAX); + vkDestroyFence(device, fence, nullptr); for (auto &page: updatedPages) { uploadContent(page, texture.image);