Destroy fence
This commit is contained in:
parent
adb0528184
commit
7543ef14b8
1 changed files with 1 additions and 0 deletions
|
|
@ -787,6 +787,7 @@ void VulkanExample::fillRandomPages()
|
||||||
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: updatedPages) {
|
for (auto &page: updatedPages) {
|
||||||
uploadContent(page, texture.image);
|
uploadContent(page, texture.image);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue