shaders: explicitly destroy wgpu images

This commit is contained in:
firestar99
2025-09-07 19:49:44 +02:00
parent a2c0693038
commit af5af7516b

View File

@@ -157,6 +157,12 @@ mod gpu {
&self.texture
}
}
impl Drop for GPU {
fn drop(&mut self) {
self.texture.destroy();
}
}
}
#[cfg(not(feature = "wgpu"))]
@@ -174,6 +180,10 @@ mod gpu {
true
}
}
impl Drop for GPU {
fn drop(&mut self) {}
}
}
mod gpu_common {