Explicitly call free_gpu_resources on RenderState drop

This commit is contained in:
Belén Albeza
2026-04-08 12:03:12 +02:00
parent 6d5b97a7e9
commit f6b8117fe9

View File

@@ -3004,3 +3004,9 @@ impl RenderState {
self.viewbox.set_all(zoom, x, y);
}
}
impl Drop for RenderState {
fn drop(&mut self) {
self.gpu_state.context.free_gpu_resources();
}
}