Skip to content

Commit 7fdafcf

Browse files
committed
refactor: use wgpu renderer unconditionally on all platforms
Remove macOS-only cfg guard — wgpu is now the renderer for all platforms, not just macOS.
1 parent 6bbf834 commit 7fdafcf

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 4 deletions
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",
@@ -81,9 +81,6 @@ zmq = "0.10.0"
8181
[target.'cfg(target_os = "windows")'.dependencies]
8282
zeromq = "0.4.1"
8383

84-
[target.'cfg(target_os = "macos")'.dependencies]
85-
eframe = { version = "0.33.3", features = ["persistence", "wgpu"] }
86-
8784
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
8885
native-dialog = "0.9.0"
8986
raw-cpuid = "11.5.0"

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ 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) on macOS to avoid NSOpenGLContext
59-
// idle/sleep crashes (#629). Other platforms keep the default glow renderer.
60-
#[cfg(target_os = "macos")]
58+
// Use wgpu instead of glow (OpenGL) to avoid platform-specific rendering
59+
// issues, e.g. NSOpenGLContext idle/sleep crashes on macOS (#629)
6160
renderer: eframe::Renderer::Wgpu,
6261
..Default::default()
6362
};

0 commit comments

Comments
 (0)