mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Rename Texture to FontImage
This commit is contained in:
@@ -97,7 +97,11 @@ pub fn criterion_benchmark(c: &mut Criterion) {
|
||||
let text_shape = TextShape::new(egui::Pos2::ZERO, galley);
|
||||
c.bench_function("tessellate_text", |b| {
|
||||
b.iter(|| {
|
||||
tessellator.tessellate_text(fonts.texture().size(), text_shape.clone(), &mut mesh);
|
||||
tessellator.tessellate_text(
|
||||
fonts.font_image().size(),
|
||||
text_shape.clone(),
|
||||
&mut mesh,
|
||||
);
|
||||
mesh.clear();
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user