mirror of
https://github.com/rt64/rt64.git
synced 2025-04-17 08:44:21 +00:00
Clear handle when releasing the swap chain.
This commit is contained in:
parent
4c2ba6406b
commit
92ae002acf
@ -2227,6 +2227,7 @@ namespace RT64 {
|
||||
void VulkanSwapChain::releaseSwapChain() {
|
||||
if (vk != VK_NULL_HANDLE) {
|
||||
vkDestroySwapchainKHR(commandQueue->device->vk, vk, nullptr);
|
||||
vk = VK_NULL_HANDLE;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user