swapchain: fix borked resize logic
This commit is contained in:
parent
fb30c830d7
commit
84439e5400
|
@ -86,9 +86,6 @@ impl<A: Allocator<B>, B: Buffer> Swapchain<A, B> {
|
||||||
|
|
||||||
self.width = width;
|
self.width = width;
|
||||||
self.height = height;
|
self.height = height;
|
||||||
|
self.slots = Default::default();
|
||||||
for mut slot in &mut self.slots {
|
|
||||||
let _ = std::mem::replace(&mut slot, &mut Slot::default());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue