From e94372c02653b443563b8854694c3972b7503dab Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 12 Oct 2022 14:10:05 +0200 Subject: [PATCH] Consolidate duplicated code --- crates/fj-viewer/src/graphics/renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/fj-viewer/src/graphics/renderer.rs b/crates/fj-viewer/src/graphics/renderer.rs index aaa8b9e61..5c77b1ee1 100644 --- a/crates/fj-viewer/src/graphics/renderer.rs +++ b/crates/fj-viewer/src/graphics/renderer.rs @@ -254,7 +254,7 @@ impl Renderer { ); } - if self.features.contains(wgpu::Features::POLYGON_MODE_LINE) { + if self.is_line_drawing_available() { if config.draw_mesh { drawables.mesh.draw( &mut encoder,