From f8aa6d676c1a129d9322b26b3a235e2cd69c4f43 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 2 Dec 2014 20:41:32 +0100 Subject: [PATCH] Fix multisampling not working on X11 --- src/x11/window/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 72c7133b..206b0b2a 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -70,7 +70,6 @@ impl Window { ffi::GLX_DEPTH_SIZE, 24, ffi::GLX_STENCIL_SIZE, 8, ffi::GLX_DOUBLEBUFFER, 1, - 0 ]; if let Some(val) = builder.multisampling { @@ -80,6 +79,8 @@ impl Window { visual_attributes.push(val as libc::c_int); } + visual_attributes.push(0); + let mut num_fb: libc::c_int = mem::uninitialized(); let fb = ffi::glx::ChooseFBConfig(display, ffi::XDefaultScreen(display),