mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-03 22:45:00 -06:00
Vulkan device destroy images_view on Swapchain::Destroy (#4218)
This commit is contained in:
parent
b365d5fe78
commit
fb067bc43f
@ -261,6 +261,12 @@ void Swapchain::Destroy() {
|
|||||||
LOG_WARNING(Render_Vulkan, "Failed to wait for device to become idle: {}",
|
LOG_WARNING(Render_Vulkan, "Failed to wait for device to become idle: {}",
|
||||||
vk::to_string(wait_result));
|
vk::to_string(wait_result));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto& image_view : images_view) {
|
||||||
|
device.destroyImageView(image_view);
|
||||||
|
}
|
||||||
|
images_view.clear();
|
||||||
|
|
||||||
if (swapchain) {
|
if (swapchain) {
|
||||||
device.destroySwapchainKHR(swapchain);
|
device.destroySwapchainKHR(swapchain);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user