This commit is contained in:
griffi-gh 2024-03-01 18:45:56 +01:00
parent a09a25ba73
commit 551dd343ac

View file

@ -132,7 +132,7 @@ impl GliumUiRenderer {
} }
fn update_buffers(&mut self, call: &UiDrawCall) { fn update_buffers(&mut self, call: &UiDrawCall) {
log::trace!("updating ui buffers (i={})", call.indices.len()); log::trace!("updating ui buffers (tris: {})", call.indices.len() / 3);
let data_vtx = &call.vertices.iter().copied().map(Vertex::from).collect::<Vec<_>>()[..]; let data_vtx = &call.vertices.iter().copied().map(Vertex::from).collect::<Vec<_>>()[..];
let data_idx = &call.indices[..]; let data_idx = &call.indices[..];
if let Some(buffer) = &mut self.buffer_pair { if let Some(buffer) = &mut self.buffer_pair {