Destroy fence
This commit is contained in:
parent
7543ef14b8
commit
241583774c
1 changed files with 1 additions and 0 deletions
|
|
@ -913,6 +913,7 @@ void VulkanExample::flushRandomPages()
|
||||||
VK_CHECK_RESULT(vkCreateFence(device, &fenceInfo, nullptr, &fence));
|
VK_CHECK_RESULT(vkCreateFence(device, &fenceInfo, nullptr, &fence));
|
||||||
vkQueueBindSparse(queue, 1, &texture.bindSparseInfo, fence);
|
vkQueueBindSparse(queue, 1, &texture.bindSparseInfo, fence);
|
||||||
vkWaitForFences(device, 1, &fence, VK_TRUE, UINT64_MAX);
|
vkWaitForFences(device, 1, &fence, VK_TRUE, UINT64_MAX);
|
||||||
|
vkDestroyFence(device, fence, nullptr);
|
||||||
for (auto& page : texture.pages)
|
for (auto& page : texture.pages)
|
||||||
{
|
{
|
||||||
if (page.del)
|
if (page.del)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue