From 83190432982e4adb2fe14bf3f0de20f6a74fadba Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 5 Jan 2016 18:05:02 +0100 Subject: Fix wrong screen ID used on GLX --- src/api/x11/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/x11') diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index 55e88a1..2f700ce 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -366,7 +366,7 @@ impl Window { // GLX should be preferred over EGL, otherwise crashes may occur // on X11 – issue #314 if let Some(ref glx) = display.glx { - Prototype::Glx(try!(GlxContext::new(glx.clone(), &display.xlib, pf_reqs, &builder_clone_opengl_glx, display.display))) + Prototype::Glx(try!(GlxContext::new(glx.clone(), &display.xlib, pf_reqs, &builder_clone_opengl_glx, display.display, screen_id))) } else if let Some(ref egl) = display.egl { Prototype::Egl(try!(EglContext::new(egl.clone(), pf_reqs, &builder_clone_opengl_egl, egl::NativeDisplay::X11(Some(display.display as *const _))))) } else { -- cgit v1.2.3