From e5783127f4907208a350d8eefcb3d8b0a84b787a Mon Sep 17 00:00:00 2001 From: Konkitoman Date: Tue, 26 Sep 2023 19:45:12 +0300 Subject: [PATCH] Fix max_texture_side for the main viewport was alwats set to 0 --- crates/eframe/src/native/run.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index 71cb6a560..19f552aef 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -959,6 +959,12 @@ mod glow_integration { .unwrap_or_else(|err| panic!("An OpenGL error occurred: {err}\n")); glutin_ctx.max_texture_side = painter.max_texture_side(); + glutin_ctx.viewports[&ViewportId::MAIN] + .write() + .egui_winit + .as_mut() + .unwrap() + .set_max_texture_side(glutin_ctx.max_texture_side); let system_theme = system_theme( &glutin_ctx