Skip to content

Commit

Permalink
Fix: copy time in RawInput::take
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Sep 2, 2024
1 parent 2a9c638 commit ece336c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/data/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl RawInput {
.collect(),
screen_rect: self.screen_rect.take(),
max_texture_side: self.max_texture_side.take(),
time: self.time.take(),
time: self.time,
predicted_dt: self.predicted_dt,
modifiers: self.modifiers,
events: std::mem::take(&mut self.events),
Expand Down

0 comments on commit ece336c

Please sign in to comment.