shaders: explicitly destroy wgpu images

This commit is contained in:
firestar99
2025-09-07 20:37:55 +02:00
parent a2c0693038
commit af5af7516b
+10
View File
@@ -157,6 +157,12 @@ mod gpu {
&self.texture &self.texture
} }
} }
impl Drop for GPU {
fn drop(&mut self) {
self.texture.destroy();
}
}
} }
#[cfg(not(feature = "wgpu"))] #[cfg(not(feature = "wgpu"))]
@@ -174,6 +180,10 @@ mod gpu {
true true
} }
} }
impl Drop for GPU {
fn drop(&mut self) {}
}
} }
mod gpu_common { mod gpu_common {