1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

wgpu backend: Enable WebGL fallback (#8038)

* Fix for https://github.com/emilk/eframe_template/issues/223
* Related: https://github.com/gfx-rs/wgpu/pull/9319

By default, we would only turn on the WebGPU backend on web, which means
browsers without WebGPU support would just crash.

You can still opt-out of all the default `wgpu` features by enabling
`eframe/wgpu_no_default_features` instead of `eframe/wgpu`
This commit is contained in:
Emil Ernerfeldt
2026-03-27 11:12:46 +01:00
committed by GitHub
parent 82a578e58c
commit 3cf3141e8f
6 changed files with 10 additions and 10 deletions

View File

@@ -25,7 +25,12 @@ all-features = true
rustdoc-args = ["--generate-link-to-definition"]
[features]
default = ["fragile-send-sync-non-atomic-wasm", "macos-window-resize-jitter-fix", "wgpu/default"]
default = [
"fragile-send-sync-non-atomic-wasm",
"macos-window-resize-jitter-fix",
"wgpu/default",
"wgpu/webgl", # A very important fallback for web support
]
## Enables the `capture` module for capturing screenshots.
capture = ["dep:egui"]