diff --git a/vulkano/src/swapchain/swapchain.rs b/vulkano/src/swapchain/swapchain.rs index 38a322ab1a..439a6a82b2 100644 --- a/vulkano/src/swapchain/swapchain.rs +++ b/vulkano/src/swapchain/swapchain.rs @@ -634,7 +634,7 @@ impl Swapchain { array_layers: image_array_layers, }; - let img = unsafe { + let img = { UnsafeImage::from_raw( device.clone(), handle,