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

Destroy fence

parent 7543ef14
Branches
No related tags found
No related merge requests found
......@@ -913,6 +913,7 @@ void VulkanExample::flushRandomPages()
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 : texture.pages)
{
if (page.del)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment