mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Optimize tessellator: pass options by reference
This commit is contained in:
@@ -567,7 +567,7 @@ fn add_hline(fonts: &Fonts, [start, stop]: [Pos2; 2], stroke: Stroke, mesh: &mut
|
||||
let options = crate::tessellator::TessellationOptions::from_pixels_per_point(
|
||||
fonts.pixels_per_point(),
|
||||
);
|
||||
path.stroke_open(stroke, options, mesh);
|
||||
path.stroke_open(stroke, &options, mesh);
|
||||
} else {
|
||||
// Thin lines often lost, so this is a bad idea
|
||||
|
||||
|
||||
Reference in New Issue
Block a user