Extra safety when switching GPU backends, fix possible Vulkan shutdown issue. Should help #10005

This commit is contained in:
Henrik Rydgård committed 2017-10-09 12:17:54 +02:00
1 parent bb1f651182
commit 3757070fe2
3 files changed
+15 -6

No files matched your search

+1
View File
@@ -143,6 +143,7 @@ void VulkanDeviceAllocator::Destroy() {
}
}
assert(slab.deviceMemory);
vulkan_->Delete().QueueDeleteDeviceMemory(slab.deviceMemory);
}
slabs_.clear();