From e38955fbac43473a97bb946fa95046094ac864d9 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 8 Aug 2022 12:15:51 +0200 Subject: [PATCH] Fix: remember to call integration.post_rendering on wgpu path --- eframe/src/native/run.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eframe/src/native/run.rs b/eframe/src/native/run.rs index 4bd36c4b5..2f232ffbb 100644 --- a/eframe/src/native/run.rs +++ b/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() {