Skip to content

Commit

Permalink
fix wrong variable name (#2400)
Browse files Browse the repository at this point in the history
* fix wrong variable name

* fmt
  • Loading branch information
coderedart committed Dec 6, 2022
1 parent c3932f7 commit 9145893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/eframe/src/native/run.rs
Expand Up @@ -339,7 +339,8 @@ mod glow_integration {

// try egl and fallback to windows wgl. Windows is the only platform that *requires* window handle to create display.
#[cfg(target_os = "windows")]
let preference = glutin::display::DisplayApiPreference::EglThenWgl(Some(window_handle));
let preference =
glutin::display::DisplayApiPreference::EglThenWgl(Some(raw_window_handle));
// try egl and fallback to x11 glx
#[cfg(target_os = "linux")]
let preference = glutin::display::DisplayApiPreference::EglThenGlx(Box::new(
Expand Down

0 comments on commit 9145893

Please sign in to comment.