mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -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<()> {
|
fn on_resume(&mut self, event_loop: &EventLoopWindowTarget<UserEvent>) -> Result<()> {
|
||||||
crate::profile_function!();
|
crate::profile_function!();
|
||||||
|
|
||||||
let values = self
|
let windows = self
|
||||||
.viewports
|
.viewports
|
||||||
.values()
|
.values()
|
||||||
.cloned()
|
.cloned()
|
||||||
.collect::<Vec<Arc<RwLock<Window>>>>();
|
.collect::<Vec<Arc<RwLock<Window>>>>();
|
||||||
for win in values {
|
for window in windows {
|
||||||
if win.read().gl_surface.is_some() {
|
if window.read().gl_surface.is_some() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
self.init_window(&win, event_loop)?;
|
self.init_window(&window, event_loop)?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user