summaryrefslogtreecommitdiff
path: root/client/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/ui.rs')
-rw-r--r--client/src/ui.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/ui.rs b/client/src/ui.rs
index c477d07..6f41ea6 100644
--- a/client/src/ui.rs
+++ b/client/src/ui.rs
@@ -427,28 +427,28 @@ impl UiRenderer {
while index_count > surf.index_capacity {
info!(
- "index buffer overflow. expanding {} -> {}",
+ "index buffer overflow ({index_count}). expanding {} -> {}",
surf.index_capacity,
surf.index_capacity * 2
);
surf.index_capacity *= 2;
surf.index = self.device.create_buffer(&BufferDescriptor {
label: None,
- size: (size_of::<f32>() * surf.index_capacity) as u64,
+ size: (size_of::<u32>() * surf.index_capacity) as u64,
usage: BufferUsages::INDEX | BufferUsages::COPY_DST,
mapped_at_creation: false,
});
}
while vertex_count > surf.vertex_capacity {
info!(
- "vertex buffer overflow. expanding {} -> {}",
+ "vertex buffer overflow ({vertex_count}). expanding {} -> {}",
surf.vertex_capacity,
surf.vertex_capacity * 2
);
surf.vertex_capacity *= 2;
surf.vertex = self.device.create_buffer(&BufferDescriptor {
label: None,
- size: (size_of::<f32>() * surf.vertex_capacity) as u64,
+ size: (size_of::<Vertex>() * surf.vertex_capacity) as u64,
usage: BufferUsages::VERTEX | BufferUsages::COPY_DST,
mapped_at_creation: false,
});