1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00

App::clear_color: give egui::Visuals as argument

This commit is contained in:
Emil Ernerfeldt
2022-04-30 15:41:43 +02:00
parent 8303523ccf
commit e1bcaeebe5
5 changed files with 13 additions and 6 deletions

View File

@@ -95,7 +95,11 @@ pub fn run(app_name: &str, native_options: &epi::NativeOptions, app_creator: epi
crate::profile_scope!("frame");
let screen_size_in_pixels: [u32; 2] = gl_window.window().inner_size().into();
egui_glow::painter::clear(&gl, screen_size_in_pixels, app.clear_color());
egui_glow::painter::clear(
&gl,
screen_size_in_pixels,
app.clear_color(&integration.egui_ctx.style().visuals),
);
let egui::FullOutput {
platform_output,