Browse Source

Fix: remember to call integration.post_rendering on wgpu path

pull/1917/head
Emil Ernerfeldt 2 years ago
parent
commit
e38955fbac
  1. 6
      eframe/src/native/run.rs

6
eframe/src/native/run.rs

@ -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};
@ -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 {
@ -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() {

Loading…
Cancel
Save