diff --git a/crates/fj-viewer/src/graphics/renderer.rs b/crates/fj-viewer/src/graphics/renderer.rs index e1579ae7a..d206a4ffe 100644 --- a/crates/fj-viewer/src/graphics/renderer.rs +++ b/crates/fj-viewer/src/graphics/renderer.rs @@ -171,18 +171,17 @@ impl Renderer { let pipelines = Pipelines::new(&device, &bind_group_layout, color_format); + // We need to hold on to this, otherwise it might cause the egui font + // texture to get dropped after drawing one frame. // - // Note: We need to hold on to this otherwise (from my memory) - // it causes the egui font texture to get dropped after - // drawing one frame. + // This then results in an `egui_wgpu_backend` error of + // `BackendError::Internal` with message: // - // This then results in an `egui_wgpu_backend` error of - // `BackendError::Internal` with message: - // - // "Texture 0 used but not live" - // - // See also: + // ``` + // Texture 0 used but not live + // ``` // + // See also: let egui_rpass = egui_wgpu::renderer::RenderPass::new( &device, surface_config.format,