mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
eframe: fix android app quit on resume with glow backend (#3080)
This commit is contained in:
@@ -807,6 +807,10 @@ mod glow_integration {
|
|||||||
|
|
||||||
fn run_ui_and_paint(&mut self) -> EventResult {
|
fn run_ui_and_paint(&mut self) -> EventResult {
|
||||||
if let Some(running) = &mut self.running {
|
if let Some(running) = &mut self.running {
|
||||||
|
if running.gl_window.window.is_none() {
|
||||||
|
return EventResult::Wait;
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "puffin")]
|
#[cfg(feature = "puffin")]
|
||||||
puffin::GlobalProfiler::lock().new_frame();
|
puffin::GlobalProfiler::lock().new_frame();
|
||||||
crate::profile_scope!("frame");
|
crate::profile_scope!("frame");
|
||||||
|
|||||||
Reference in New Issue
Block a user