mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 15:28:04 +08:00
shaders: explicitly destroy wgpu images
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user