diff --git a/crates/fj-viewer/src/graphics/renderer.rs b/crates/fj-viewer/src/graphics/renderer.rs index d206a4ffe..780eb6ba7 100644 --- a/crates/fj-viewer/src/graphics/renderer.rs +++ b/crates/fj-viewer/src/graphics/renderer.rs @@ -188,6 +188,12 @@ impl Renderer { 1, ); + let egui = EguiState { + context: egui_context, + render_pass: egui_rpass, + options: Default::default(), + }; + Ok(Self { surface, features, @@ -203,11 +209,7 @@ impl Renderer { geometries, pipelines, - egui: EguiState { - context: egui_context, - render_pass: egui_rpass, - options: Default::default(), - }, + egui, }) }