Better graphics backend fallback

This attempts the following in order:
- wgpu with user-selected backend
- wgpu with automatic backend
- glow (fallback OpenGL backend)

This should eliminate most issues
where objdiff fails to launch.
This commit is contained in:
2024-08-11 13:33:10 -06:00
parent 09cc9952df
commit 952b6a63c3
4 changed files with 105 additions and 29 deletions

View File

@@ -18,7 +18,7 @@ name = "objdiff"
path = "src/main.rs"
[features]
default = ["wgpu", "wsl"]
default = ["glow", "wgpu", "wsl"]
glow = ["eframe/glow"]
wgpu = ["eframe/wgpu", "dep:wgpu"]
wsl = []