Prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-11-25 23:15:56 +01:00
parent 02d1d75668
commit 62e967e10f

View File

@ -88,7 +88,10 @@ impl TextRenderer {
buffers.push(buffer);
}
let text_areas = buffers.iter().map(|buffer| glyphon::TextArea {
let mut text_areas = Vec::new();
for buffer in &buffers {
text_areas.push(glyphon::TextArea {
buffer,
left: 0.,
top: 0.,
@ -102,6 +105,7 @@ impl TextRenderer {
default_color: glyphon::Color::rgb(0, 0, 0),
custom_glyphs: &[],
});
}
self.text_renderer
.prepare(