mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 07:10:04 -04:00
@@ -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.
|
// try egl and fallback to windows wgl. Windows is the only platform that *requires* window handle to create display.
|
||||||
#[cfg(target_os = "windows")]
|
#[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
|
// try egl and fallback to x11 glx
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
let preference = glutin::display::DisplayApiPreference::EglThenGlx(Box::new(
|
let preference = glutin::display::DisplayApiPreference::EglThenGlx(Box::new(
|
||||||
|
|||||||
Reference in New Issue
Block a user