From f5375d0617d4c68428c8ea8a3cf607fde5917fd7 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 12 Oct 2022 13:18:06 +0200 Subject: [PATCH] Clean up comment --- crates/fj-viewer/src/graphics/renderer.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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,