1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00

eframe::Frame::info returns a reference (#3301)

* Get a reference to `IntegrationInfo`

* Add doc comment

* Change `info` to return a reference

* Clone integration info

* Remove `&`

* Clone integration info in another place
This commit is contained in:
Barugon
2023-09-05 01:43:39 -07:00
committed by GitHub
parent e3362dafac
commit 1b8e8cb38e
3 changed files with 5 additions and 5 deletions

View File

@@ -768,7 +768,7 @@ mod glow_integration {
.expect("Single-use AppCreator has unexpectedly already been taken");
let mut app = app_creator(&epi::CreationContext {
egui_ctx: integration.egui_ctx.clone(),
integration_info: integration.frame.info(),
integration_info: integration.frame.info().clone(),
storage: integration.frame.storage(),
gl: Some(gl.clone()),
#[cfg(feature = "wgpu")]
@@ -1242,7 +1242,7 @@ mod wgpu_integration {
.expect("Single-use AppCreator has unexpectedly already been taken");
let mut app = app_creator(&epi::CreationContext {
egui_ctx: integration.egui_ctx.clone(),
integration_info: integration.frame.info(),
integration_info: integration.frame.info().clone(),
storage: integration.frame.storage(),
#[cfg(feature = "glow")]
gl: None,