mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 07:03:14 -04:00
Update crates/eframe/src/native/run.rs
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -705,16 +705,16 @@ mod glow_integration {
|
||||
fn on_resume(&mut self, event_loop: &EventLoopWindowTarget<UserEvent>) -> Result<()> {
|
||||
crate::profile_function!();
|
||||
|
||||
let values = self
|
||||
let windows = self
|
||||
.viewports
|
||||
.values()
|
||||
.cloned()
|
||||
.collect::<Vec<Arc<RwLock<Window>>>>();
|
||||
for win in values {
|
||||
if win.read().gl_surface.is_some() {
|
||||
for window in windows {
|
||||
if window.read().gl_surface.is_some() {
|
||||
continue;
|
||||
}
|
||||
self.init_window(&win, event_loop)?;
|
||||
self.init_window(&window, event_loop)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user