1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

refactor: no need to pass Fonts structure to tessellator

This makes the tesselator take only data as argument,
which is a lot nicer.
This commit is contained in:
Emil Ernerfeldt
2021-03-30 21:41:39 +02:00
parent 0802a9d9c0
commit 8c4bb0d1d9
5 changed files with 37 additions and 19 deletions

View File

@@ -89,7 +89,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
b.iter(|| {
let fake_italics = false;
tessellator.tessellate_text(
&fonts,
fonts.texture().size(),
egui::Pos2::ZERO,
&galley,
egui::Color32::WHITE,