eframe: fix android app quit on resume with glow backend (#3080)

This commit is contained in:
bilabila 2023-06-15 15:05:11 +08:00 committed by GitHub
parent 073f49682d
commit 9774d4af2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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");