Skip to content

Commit

Permalink
Update painter.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Oct 18, 2024
1 parent 707cd03 commit 39ce07c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/egui_glow/src/painter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
Expand Down

0 comments on commit 39ce07c

Please sign in to comment.