Skip to content

Commit 2512aae

Browse files
committed
Refactor wgpu path to also support exit_on_window_close == false
1 parent c839cde commit 2512aae

File tree

2 files changed

+287
-128
lines changed

2 files changed

+287
-128
lines changed

eframe/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,11 @@ pub fn run_native(app_name: &str, native_options: NativeOptions, app_creator: Ap
174174
#[cfg(feature = "wgpu")]
175175
Renderer::Wgpu => {
176176
tracing::debug!("Using the wgpu renderer");
177-
native::run::run_wgpu(app_name, &native_options, app_creator)
177+
native::run::run_wgpu(app_name, &native_options, app_creator);
178178
}
179179
}
180+
181+
tracing::debug!("eframe window closed");
180182
}
181183

182184
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)