Skip to content

Commit

Permalink
Merge pull request #35 from BlockOG/master
Browse files Browse the repository at this point in the history
Window recreation fix
optozorax authored Feb 3, 2024
2 parents 81d6a42 + 19988a5 commit dfbdb96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -110,6 +110,14 @@ pub fn draw() {
get_egui().draw()
}

// Intended to be used only if you recreate the window, making the old EGUI instance invalid.
#[doc(hidden)]
pub fn reset_egui() {
unsafe {
EGUI = None;
}
}

impl mq::EventHandler for Egui {
fn update(&mut self) {}

0 comments on commit dfbdb96

Please sign in to comment.