summaryrefslogtreecommitdiff
path: root/src/renderer/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r--src/renderer/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 1ce461b..5231bc3 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -376,8 +376,7 @@ impl RendererState {
);
// write the chunk textures
- let mut chunk_buffer: [u8; (CELLS_IN_CHUNK * 4) as usize] =
- [0; (CELLS_IN_CHUNK * 4) as usize];
+ let mut chunk_buffer: [u8; CELLS_IN_CHUNK * 4] = [0; (CELLS_IN_CHUNK * 4)];
{
puffin::profile_scope!("Upload chunk textures");