How to load a image/texture then clear it from memory later? #5367
Unanswered
UnknownSuperficialNight
asked this question in
Q&A
Replies: 1 comment
-
Use
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been using egui::Image::new to load an image from a texture, however, how do I later unload the image from memory?
Here is my Code:
I clear like this
However, these are not where the textures are held. From my understanding
egui
internally holds the textures so either I need to clear the textures interfacing withegui
or I need a way to manually handle the textures in current_images inside the Wiki structAny ideas on how I can do this?
Or does dereferenceing/clearing it from current_images clear the texture?
Does
context.forget_image(uri);
work in this instance?Beta Was this translation helpful? Give feedback.
All reactions