1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

Fix black flash on start in glow eframe backend (#7616)

Before:


https://github.com/user-attachments/assets/b31b7a4f-a5f7-45af-bfe0-4c8e174e209f

After:


https://github.com/user-attachments/assets/47544987-ca81-4efb-b778-5ca59b7fc0ac

I think to make things even nicer we could also try calling
request_discard when a window is shown
This commit is contained in:
Lucas Meurer
2025-10-09 11:44:10 +02:00
committed by GitHub
parent d1fcd740de
commit cfca7ebd6d
2 changed files with 9 additions and 1 deletions

View File

@@ -318,7 +318,9 @@ impl Default for Options {
}
impl Options {
pub(crate) fn begin_pass(&mut self, new_raw_input: &RawInput) {
// Needs to be pub because we need to set the system_theme early in the eframe glow renderer.
#[doc(hidden)]
pub fn begin_pass(&mut self, new_raw_input: &RawInput) {
self.system_theme = new_raw_input.system_theme;
}