mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 21:00:03 -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:
@@ -159,7 +159,7 @@ pub use {egui, egui::emath, egui::epaint};
|
||||
pub use {egui_glow, glow};
|
||||
|
||||
#[cfg(feature = "wgpu_no_default_features")]
|
||||
pub use {egui_wgpu, wgpu};
|
||||
pub use {egui_wgpu, egui_wgpu::wgpu};
|
||||
|
||||
mod epi;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user