rt(vk): fix double free in RawVulkanBuffer

This commit is contained in:
chyyran 2024-02-08 18:09:23 -05:00
parent 44aa5fab7d
commit 923bc165b2

View file

@ -186,9 +186,6 @@ impl Drop for RawVulkanBuffer {
fn drop(&mut self) {
unsafe {
ManuallyDrop::drop(&mut self.buffer);
if self.buffer.handle != vk::Buffer::null() {
self.buffer.device.destroy_buffer(self.buffer.handle, None);
}
}
}
}