mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
vulkan: Fix two more validation errors. (#1250)
This commit is contained in:
@@ -197,6 +197,11 @@ void Swapchain::SetSurfaceProperties() {
|
||||
|
||||
void Swapchain::Destroy() {
|
||||
vk::Device device = instance.GetDevice();
|
||||
const auto wait_result = device.waitIdle();
|
||||
if (wait_result != vk::Result::eSuccess) {
|
||||
LOG_WARNING(Render_Vulkan, "Failed to wait for device to become idle: {}",
|
||||
vk::to_string(wait_result));
|
||||
}
|
||||
if (swapchain) {
|
||||
device.destroySwapchainKHR(swapchain);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user