From c0e108455a8019a2197723f87fea2c11083835ae Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 28 Sep 2023 18:29:32 -0700 Subject: [PATCH] whoops --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f638cdf..65193a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -210,7 +210,7 @@ impl GraphicsData { let mut instance_count=0; let uniform_buffer_binding_size=::required_limits().max_uniform_buffer_binding_size as usize; let chunk_size=uniform_buffer_binding_size/MODEL_BUFFER_SIZE_BYTES; - self.models.reserve(unique_texture_models.len()); + self.models.reserve(models.len()); for model in models.drain(..) { for instances_chunk in model.instances.rchunks(chunk_size){ instance_count+=1;