Skip to content

Commit

Permalink
Update epi_integration.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored May 9, 2024
1 parent 62ba8cf commit d9408aa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/eframe/src/native/epi_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub struct EpiIntegration {
is_first_frame: bool,
pub frame_start: Instant,
pub egui_ctx: egui::Context,
pending_full_output: egui::FullOutput,
// pending_full_output: egui::FullOutput,

/// When set, it is time to close the native window.
close: bool,
Expand Down Expand Up @@ -201,7 +201,7 @@ impl EpiIntegration {
frame,
last_auto_save: Instant::now(),
egui_ctx,
pending_full_output: Default::default(),
// pending_full_output: Default::default(),
close: false,
can_drag_window: false,
follow_system_theme: native_options.follow_system_theme,
Expand Down Expand Up @@ -313,8 +313,9 @@ impl EpiIntegration {
}
});

self.pending_full_output.append(full_output);
std::mem::take(&mut self.pending_full_output)
// self.pending_full_output.append(full_output);
// std::mem::take(&mut self.pending_full_output)
full_output
}

pub fn report_frame_time(&mut self, seconds: f32) {
Expand Down

0 comments on commit d9408aa

Please sign in to comment.