mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 23:13:13 -04:00
eframe fix android build
This commit is contained in:
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user