diff --git a/src/lib.rs b/src/lib.rs index b1bfe7c..f9011a6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) {}