mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Update wgpu to 0.19 (#3824)
* Closes https://github.com/emilk/egui/issues/3675 --------- Co-authored-by: Andreas Reich <r_andreas2@web.de> Co-authored-by: Mingun <Alexander_Sergey@mail.ru>
This commit is contained in:
@@ -22,7 +22,7 @@ mod window_settings;
|
||||
|
||||
pub use window_settings::WindowSettings;
|
||||
|
||||
use raw_window_handle::HasRawDisplayHandle;
|
||||
use raw_window_handle::HasDisplayHandle;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
pub(crate) use profiling_scopes::*;
|
||||
@@ -106,7 +106,7 @@ impl State {
|
||||
pub fn new(
|
||||
egui_ctx: egui::Context,
|
||||
viewport_id: ViewportId,
|
||||
display_target: &dyn HasRawDisplayHandle,
|
||||
display_target: &dyn HasDisplayHandle,
|
||||
native_pixels_per_point: Option<f32>,
|
||||
max_texture_side: Option<usize>,
|
||||
) -> Self {
|
||||
@@ -126,7 +126,9 @@ impl State {
|
||||
any_pointer_button_down: false,
|
||||
current_cursor_icon: None,
|
||||
|
||||
clipboard: clipboard::Clipboard::new(display_target),
|
||||
clipboard: clipboard::Clipboard::new(
|
||||
display_target.display_handle().ok().map(|h| h.as_raw()),
|
||||
),
|
||||
|
||||
simulate_touch_screen: false,
|
||||
pointer_touch_id: None,
|
||||
|
||||
Reference in New Issue
Block a user