Skip to content
Snippets Groups Projects
Commit 7543ef14 authored by Sascha Willems's avatar Sascha Willems
Browse files

Destroy fence

parent adb05281
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment