Skip to content

Commit 923f6a2

Browse files
committed
Add support for nvidia
1 parent 08c09de commit 923f6a2

File tree

1 file changed

+2
-3
lines changed
  • src/vonal_daemon/windowing

1 file changed

+2
-3
lines changed

src/vonal_daemon/windowing/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ impl GlutinWindowContext {
5656
let raw_display_handle = winit_window.raw_display_handle();
5757
let raw_window_handle = winit_window.raw_window_handle();
5858

59+
// This was GlxThenEgl, but it broke
5960
#[cfg(target_os = "linux")]
60-
let preference = glutin::display::DisplayApiPreference::GlxThenEgl(Box::new(
61-
winit::platform::x11::register_xlib_error_hook,
62-
));
61+
let preference = glutin::display::DisplayApiPreference::Egl;
6362

6463
let gl_display = glutin::display::Display::new(raw_display_handle, preference).unwrap();
6564

0 commit comments

Comments
 (0)