VkSwapchain: Remove useless drop_swapchain
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
This commit is contained in:
parent
5272bf14e8
commit
21195b57e6
1 changed files with 3 additions and 7 deletions
|
@ -159,18 +159,14 @@ impl VkSwapchain {
|
|||
.clipped(true)
|
||||
.image_array_layers(1)
|
||||
}
|
||||
}
|
||||
|
||||
fn drop_swapchain(&mut self) {
|
||||
impl Drop for VkSwapchain {
|
||||
fn drop(&mut self) {
|
||||
if let Some(swapchain) = self.swapchain {
|
||||
unsafe { self.device.swapchain_loader.destroy_swapchain(swapchain, None); }
|
||||
self.swapchain = None;
|
||||
log::debug!(target: LOG_TARGET, "Swapchain destroyed ({swapchain:?})");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for VkSwapchain {
|
||||
fn drop(&mut self) {
|
||||
self.drop_swapchain()
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue