Skip to content

Commit

Permalink
Fixes bevyengine#134 and bevyengine#135 with a slight hit on performa…
Browse files Browse the repository at this point in the history
…nces as get_or_assign_index will now always assign (bevyengine#247)
  • Loading branch information
BorisBoutillier authored Aug 22, 2020
1 parent 2dadc86 commit 4eb437a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4eb437a

Please sign in to comment.