diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index b95b5263e..8d4510222 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -2003,7 +2003,7 @@ mod wgpu_integration { #[cfg(target_os = "android")] fn drop_window(&mut self) -> std::result::Result<(), egui_wgpu::WgpuError> { if let Some(running) = &mut self.running { - running.windows.write().remove(&ViewportId::MAIN); + running.viewports.write().remove(&ViewportId::MAIN); pollster::block_on(running.painter.write().set_window(ViewportId::MAIN, None))?; } Ok(())