Skip to content

Commit 481cfab

Browse files
authored
Merge pull request #662 from thepastaclaw/fix/macos-wgpu-renderer
fix: use wgpu renderer on macOS to prevent idle crash
1 parent 7fa30ed commit 481cfab

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ egui_commonmark = "0.22.0"
1616
rfd = "0.17.2"
1717
qrcode = "0.14.1"
1818
nix = { version = "0.31.1", features = ["signal"] }
19-
eframe = { version = "0.33.3", features = ["persistence"] }
19+
eframe = { version = "0.33.3", features = ["persistence", "wgpu"] }
2020
base64 = "0.22.1"
2121
dash-sdk = { git = "https://github.com/dashpay/platform", rev = "0fa82e6652097d17a700d8bcc006d6b2aa922c6e", features = [
2222
"core_key_wallet",

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ async fn start(app_data_dir: &std::path::Path) -> Result<(), eframe::Error> {
5555
viewport: egui::ViewportBuilder::default()
5656
.with_icon(icon_data)
5757
.with_app_id("org.dash.DashEvoTool"),
58+
// Use wgpu instead of glow (OpenGL) to avoid platform-specific rendering
59+
// issues, e.g. NSOpenGLContext idle/sleep crashes on macOS (#629)
60+
renderer: eframe::Renderer::Wgpu,
5861
..Default::default()
5962
};
6063

0 commit comments

Comments
 (0)