diff --git a/node-graph/gcore/src/raster_types.rs b/node-graph/gcore/src/raster_types.rs index 7efae73fb8..583de0a3d1 100644 --- a/node-graph/gcore/src/raster_types.rs +++ b/node-graph/gcore/src/raster_types.rs @@ -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 {