mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 07:03:14 -04:00
Reverts change in #1303, enabling the egui_glow::winit module when using wasm. * Closes <https://github.com/emilk/egui/issues/4420>
This commit is contained in:
@@ -54,6 +54,7 @@ x11 = ["winit?/x11"]
|
||||
|
||||
[dependencies]
|
||||
egui = { workspace = true, default-features = false, features = ["bytemuck"] }
|
||||
egui-winit = { workspace = true, optional = true, default-features = false }
|
||||
|
||||
bytemuck = "1.7"
|
||||
glow.workspace = true
|
||||
@@ -66,7 +67,6 @@ document-features = { workspace = true, optional = true }
|
||||
|
||||
# Native:
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
egui-winit = { workspace = true, optional = true, default-features = false }
|
||||
puffin = { workspace = true, optional = true }
|
||||
winit = { workspace = true, optional = true, default-features = false, features = [
|
||||
"rwh_06", # for compatibility with egui-winit
|
||||
|
||||
@@ -21,9 +21,9 @@ mod vao;
|
||||
|
||||
pub use shader_version::ShaderVersion;
|
||||
|
||||
#[cfg(all(not(target_arch = "wasm32"), feature = "winit"))]
|
||||
#[cfg(feature = "winit")]
|
||||
pub mod winit;
|
||||
#[cfg(all(not(target_arch = "wasm32"), feature = "winit"))]
|
||||
#[cfg(feature = "winit")]
|
||||
pub use winit::*;
|
||||
|
||||
/// Check for OpenGL error and report it using `log::error`.
|
||||
|
||||
Reference in New Issue
Block a user