Skip to content

Commit

Permalink
Fix Windows config initialization
Browse files Browse the repository at this point in the history
`wgl_backend` was supposed to be an alias
  • Loading branch information
Speykious committed Feb 18, 2024
1 parent 0447016 commit 2614db9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/render-opengl/src/app_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2614db9

Please sign in to comment.