From 2614db99ce9a0e0b00051555cf6822ee66e4f323 Mon Sep 17 00:00:00 2001 From: Speykious Date: Sun, 18 Feb 2024 23:26:03 +0100 Subject: [PATCH] Fix Windows config initialization `wgl_backend` was supposed to be an alias --- examples/render-opengl/src/app_frame.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/render-opengl/src/app_frame.rs b/examples/render-opengl/src/app_frame.rs index 3f87681..4ca448a 100644 --- a/examples/render-opengl/src/app_frame.rs +++ b/examples/render-opengl/src/app_frame.rs @@ -58,7 +58,10 @@ impl AppFrame { // // XXX if you don't care about running on Android or so you can safely remove // this condition and always pass the window builder. - let maydow_builder = cfg!(wgl_backend).then_some(window_builder.clone()); + let maydow_builder = { + let wgl_backend = cfg!(all(feature = "wgl", windows, not(wasm_platform))); + wgl_backend.then_some(window_builder.clone()) + }; let display_builder = DisplayBuilder::new().with_window_builder(maydow_builder);