mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
### Related * Closes #8134. * Related to #5136. Possibly fixes: * #8123 * #5145 ### What We did not properly handle the variants of [`CurrentSurfaceTexture`](https://docs.rs/wgpu/latest/wgpu/enum.CurrentSurfaceTexture.html) and always returned `SkipFrame`. Because of this `egui` could end up in a state where frames are always skipped after observing `Outdated`, without the chance to recover (unless an event arrives from the outside). > [!NOTE] > This is not Wayland-specific, but could happen on all platforms. It just happens frequently for Wayland compositors that directly resize a window after creation (such as tiling/scrolling compositors like `hyprland` and `niri`). This PR improves this by separating the code paths for `Outdated` and `Lost`, to help recover from those events.