Skip to content

How to load a image/texture then clear it from memory later? #5367

Discussion options

You must be logged in to vote

Use context.forget_image(uri);.
You can check if it has been cleared in inspection_ui().

        egui::Window::new("🔍 Inspection")
            .open(&mut self.show_inspection)
            .vscroll(true)
            .show(ctx, |ui| {
                ctx.inspection_ui(ui);
            });

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@UnknownSuperficialNight
Comment options

Answer selected by UnknownSuperficialNight
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants