File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,9 @@ lto = true
20
20
strip = true
21
21
22
22
[dependencies ]
23
- winit = { version = " 0.30.11" , default-features = true }
24
- eframe = { version = " 0.32.0" , default-features = false , features = [
25
- " default_fonts" ,
26
- " accesskit" ,
23
+ eframe = { version = " 0.32.0" , features = [
27
24
" persistence" ,
28
25
" wgpu" ,
29
- " wayland" ,
30
- " x11" ,
31
26
] }
32
27
egui = { version = " 0.32.0" }
33
28
egui_extras = " 0.32.0"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ mod style;
17
17
mod utils;
18
18
mod widgets;
19
19
20
- fn main ( ) {
20
+ fn run_native ( renderer : eframe :: Renderer ) -> eframe :: Result {
21
21
eframe:: run_native (
22
22
"PlistOxide" ,
23
23
NativeOptions {
@@ -29,6 +29,7 @@ fn main() {
29
29
. unwrap ( ) ,
30
30
)
31
31
. with_app_id ( "org.ChefKiss.PlistOxide" ) ,
32
+ renderer,
32
33
..Default :: default ( )
33
34
} ,
34
35
Box :: new ( |cc| {
@@ -38,5 +39,13 @@ fn main() {
38
39
) ) )
39
40
} ) ,
40
41
)
41
- . unwrap ( ) ;
42
+ }
43
+
44
+ fn main ( ) {
45
+ if let Err ( e) = run_native ( eframe:: Renderer :: Wgpu ) {
46
+ eprintln ! ( "Failed to run with wgpu renderer, trying glow. ({e})" ) ;
47
+ }
48
+ if let Err ( e) = run_native ( eframe:: Renderer :: Glow ) {
49
+ eprintln ! ( "Failed to run with wgpu and glow renderer: ({e})" ) ;
50
+ }
42
51
}
You can’t perform that action at this time.
0 commit comments