From 39ce07c09dabe74422c5b41f61e9ab5e0446c2e8 Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:46:35 +0900 Subject: [PATCH] Update painter.rs --- crates/egui_glow/src/painter.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/egui_glow/src/painter.rs b/crates/egui_glow/src/painter.rs index f8f6145c8a0..fadb842a129 100644 --- a/crates/egui_glow/src/painter.rs +++ b/crates/egui_glow/src/painter.rs @@ -771,9 +771,7 @@ pub fn clear(gl: &glow::Context, screen_size_in_pixels: [u32; 2], clear_color: [ impl Drop for Painter { fn drop(&mut self) { if !self.destroyed { - log::warn!( - "You forgot to call destroy() on the egui glow painter. Resources will leak!" - ); + self.destroy(); } } }