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