diff --git a/vulkano/src/device/physical.rs b/vulkano/src/device/physical.rs index c1ae355e..1586abef 100644 --- a/vulkano/src/device/physical.rs +++ b/vulkano/src/device/physical.rs @@ -812,7 +812,10 @@ impl PhysicalDevice { .collect() }; - *self.display_plane_properties.write() = properties_raw.clone(); + self.display_plane_properties + .write() + .clone_from(&properties_raw); + Ok(properties_raw) }