mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Fix: remember to call integration.post_rendering on wgpu path
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
//! Note that this file contains two similar paths - one for [`glow`], one for [`wgpu`].
|
//! 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.
|
//! 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::time::Instant;
|
||||||
use std::{sync::Arc, time::Duration};
|
|
||||||
|
|
||||||
use egui_winit::winit;
|
use egui_winit::winit;
|
||||||
use winit::event_loop::{ControlFlow, EventLoop};
|
use winit::event_loop::{ControlFlow, EventLoop};
|
||||||
@@ -198,6 +198,8 @@ fn run_and_exit(
|
|||||||
/// Run an egui app
|
/// Run an egui app
|
||||||
#[cfg(feature = "glow")]
|
#[cfg(feature = "glow")]
|
||||||
mod glow_integration {
|
mod glow_integration {
|
||||||
|
use std::sync::Arc;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
struct GlowWinitApp {
|
struct GlowWinitApp {
|
||||||
@@ -589,6 +591,8 @@ mod wgpu_integration {
|
|||||||
&textures_delta,
|
&textures_delta,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
integration.post_rendering(app.as_mut(), window);
|
||||||
|
|
||||||
let control_flow = if integration.should_quit() {
|
let control_flow = if integration.should_quit() {
|
||||||
EventResult::Exit
|
EventResult::Exit
|
||||||
} else if repaint_after.is_zero() {
|
} else if repaint_after.is_zero() {
|
||||||
|
|||||||
Reference in New Issue
Block a user