egui/crates/eframe/src/native
Emil Ernerfeldt 8503a85113
Bug fix: framebuffer clear when using glow with multi-viewports (#3713)
I broke this in https://github.com/emilk/egui/pull/3665

For some reason, when using multiple viewports, the first "clear"
doesn't take.

I don't have time to investigate further, so I am adding a hack here
which:

* For single-viewport apps, the clear is done before `App::update` so
user can paint there
* For multi-viewport apps, the clear is done after `App::update`, so
that it works

This means painting in `App::update` won't work with multi-viewports.

Ideally, users should use paint callbacks instead of painting directly
in `App::update` anyways.
2023-12-18 12:47:23 +01:00
..
app_icon.rs Fix: fall back to default egui icon if non is set (#3610) 2023-11-22 20:54:16 +01:00
epi_integration.rs Simplify `egui_winit::State` (#3678) 2023-12-05 11:45:25 +01:00
file_storage.rs Use `egui::ViewportBuilder` in `eframe::NativeOptions` (#3572) 2023-11-19 11:08:47 +01:00
glow_integration.rs Bug fix: framebuffer clear when using glow with multi-viewports (#3713) 2023-12-18 12:47:23 +01:00
mod.rs Refactor: move code around in `eframe` (#3575) 2023-11-19 12:12:43 +01:00
run.rs Fix closing of viewports (#3591) 2023-11-20 17:43:40 +01:00
wgpu_integration.rs Simplify `egui_winit::State` (#3678) 2023-12-05 11:45:25 +01:00
winit_integration.rs Introduce global `zoom_factor` (#3608) 2023-11-22 20:34:51 +01:00