Skip to content

Commit

Permalink
Fix: remember to call integration.post_rendering on wgpu path
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Aug 8, 2022
1 parent 9e41fa0 commit e38955f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eframe/src/native/run.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Note that this file contains two similar paths - one for [`glow`], one for [`wgpu`].
//! When making changes to one you often also want to apply it to the other.
use std::time::Duration;
use std::time::Instant;
use std::{sync::Arc, time::Duration};

use egui_winit::winit;
use winit::event_loop::{ControlFlow, EventLoop};
Expand Down Expand Up @@ -198,6 +198,8 @@ fn run_and_exit(
/// Run an egui app
#[cfg(feature = "glow")]
mod glow_integration {
use std::sync::Arc;

use super::*;

struct GlowWinitApp {
Expand Down Expand Up @@ -589,6 +591,8 @@ mod wgpu_integration {
&textures_delta,
);

integration.post_rendering(app.as_mut(), window);

let control_flow = if integration.should_quit() {
EventResult::Exit
} else if repaint_after.is_zero() {
Expand Down

0 comments on commit e38955f

Please sign in to comment.