Consolidate duplicated code

This commit is contained in:
Hanno Braun 2022-10-12 14:10:05 +02:00
parent c4b83be39c
commit e94372c026

View File

@ -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 { if config.draw_mesh {
drawables.mesh.draw( drawables.mesh.draw(
&mut encoder, &mut encoder,