Skip to content

Commit

Permalink
Refactor wgpu path to also support exit_on_window_close == false
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Aug 3, 2022
1 parent c839cde commit 2512aae
Show file tree
Hide file tree
Showing 2 changed files with 287 additions and 128 deletions.
4 changes: 3 additions & 1 deletion eframe/src/lib.rs
Expand Up @@ -174,9 +174,11 @@ pub fn run_native(app_name: &str, native_options: NativeOptions, app_creator: Ap
#[cfg(feature = "wgpu")]
Renderer::Wgpu => {
tracing::debug!("Using the wgpu renderer");
native::run::run_wgpu(app_name, &native_options, app_creator)
native::run::run_wgpu(app_name, &native_options, app_creator);
}
}

tracing::debug!("eframe window closed");
}

// ---------------------------------------------------------------------------
Expand Down

0 comments on commit 2512aae

Please sign in to comment.