1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Update example and now the viewport will always render if can create a native window will be embedded

This commit is contained in:
Konkitoman
2023-07-25 12:43:34 +03:00
parent 55a0f1f0c3
commit 2131f251fc
3 changed files with 36 additions and 14 deletions

View File

@@ -1065,11 +1065,7 @@ mod glow_integration {
let screen_size_in_pixels: [u32; 2] =
win.window.as_ref().unwrap().inner_size().into();
egui_glow::painter::clear(
&gl,
screen_size_in_pixels,
app.clear_color(&integration.egui_ctx.style().visuals),
);
egui_glow::painter::clear(&gl, screen_size_in_pixels, [0.0, 0.0, 0.0, 0.0]);
integration.egui_ctx.set_current_viewport_id(win.window_id);
egui::FullOutput {