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(); } } }