diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index 0ee7e5a3..bd7ccd72 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -807,6 +807,10 @@ mod glow_integration { fn run_ui_and_paint(&mut self) -> EventResult { if let Some(running) = &mut self.running { + if running.gl_window.window.is_none() { + return EventResult::Wait; + } + #[cfg(feature = "puffin")] puffin::GlobalProfiler::lock().new_frame(); crate::profile_scope!("frame");