[Vulkan] Unset kBatchOwnsFence when transferring fences

This commit is contained in:
DrChat 2018-02-28 21:00:31 -06:00
parent 7fbd55369e
commit 63a489d4c6
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ class BaseFencedPool {
// Transfer owned -> external
vkDestroyFence(device_, batch->fence, nullptr);
batch->fence = fence;
batch->flags &= ~kBatchOwnsFence;
} else if (!(batch->flags & kBatchOwnsFence) && !fence) {
// external -> owned
VkFenceCreateInfo info;