From cd2e2cc61e65575c51fd8ea1fa10cda3c2e64ca9 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Tue, 3 Nov 2020 16:04:27 -0600 Subject: [PATCH] [rs] Enable X11 Support for the GL Backend --- wgpu/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index a341ad5c87..3c94d230ef 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -45,10 +45,13 @@ tracing = { version = "0.1", default-features = false, features = ["std"] } typed-arena = "2.0.1" serde = { version = "1", features = ["derive"], optional = true } -#Note: we may consider switching this to "dev-dependencies" if users +# Enable X11 support +# Note: we may consider switching this to "dev-dependencies" if users # want to opt into X11 explicitly. [target.'cfg(all(unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies] gfx-backend-vulkan = { version = "0.6", features = ["x11"] } +[target.'cfg(unix)'.dependencies] +gfx-backend-gl = { version = "0.6", features = ["x11"] } [dev-dependencies] cgmath = "0.17"