Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Oct 3, 2022
1 parent 4a57a50 commit cbefbb0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/atlas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,7 @@ impl Atlas {

let sz = Atlas::ATLAS_SIZE as usize;

let mut data = vec![];
data.reserve(sz * sz);
for _ in 0..sz {
for _ in 0..sz {
data.push(0 as u8);
}
}
let data = vec![0_u8;sz * sz];

let buffer = device.create_buffer_init(&wgpu::util::BufferInitDescriptor {
label: Some("atlas temp buffer"),
Expand Down

0 comments on commit cbefbb0

Please sign in to comment.