From af5af7516b73d1e90f9c920fcc76e2c151218e11 Mon Sep 17 00:00:00 2001 From: firestar99 Date: Sun, 7 Sep 2025 19:49:44 +0200 Subject: [PATCH] shaders: explicitly destroy wgpu images --- node-graph/gcore/src/raster_types.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 {