diff --git a/Cargo.lock b/Cargo.lock index a353129f..19ee0077 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2491,6 +2491,7 @@ dependencies = [ "objc2-foundation 0.2.2", "parking_lot", "percent-encoding", + "pollster", "profiling", "raw-window-handle", "ron", @@ -2500,6 +2501,7 @@ dependencies = [ "wasm-bindgen-futures", "web-sys", "web-time", + "wgpu", "windows-sys 0.61.2", "winit", ] diff --git a/Cargo.toml b/Cargo.toml index 1ed4b5f8..668cd386 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ egui_commonmark = "0.22.0" rfd = "0.17.2" qrcode = "0.14.1" nix = { version = "0.31.1", features = ["signal"] } -eframe = { version = "0.33.3", features = ["persistence"] } +eframe = { version = "0.33.3", features = ["persistence", "wgpu"] } base64 = "0.22.1" dash-sdk = { git = "https://github.com/dashpay/platform", rev = "0fa82e6652097d17a700d8bcc006d6b2aa922c6e", features = [ "core_key_wallet", diff --git a/src/main.rs b/src/main.rs index c5a65f6c..5c07da0a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,6 +55,9 @@ async fn start(app_data_dir: &std::path::Path) -> Result<(), eframe::Error> { viewport: egui::ViewportBuilder::default() .with_icon(icon_data) .with_app_id("org.dash.DashEvoTool"), + // Use wgpu instead of glow (OpenGL) to avoid platform-specific rendering + // issues, e.g. NSOpenGLContext idle/sleep crashes on macOS (#629) + renderer: eframe::Renderer::Wgpu, ..Default::default() };