Fixes #134 and #135 with a slight hit on performances as get_or_assign_index will now always assign (#247)

This commit is contained in:
Boutillier 2020-08-22 18:28:38 +02:00 committed by GitHub
parent 2dadc86fb0
commit 4eb437ab2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,6 +90,8 @@ where
for buffer_status in self.uniform_arrays.iter_mut() {
if let Some((_name, buffer_status)) = buffer_status {
buffer_status.changed_item_count = 0;
buffer_status.current_index = 0;
buffer_status.indices.clear();
buffer_status.current_offset = 0;
buffer_status.changed_size = 0;
}