diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-12-02 20:47:45 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-12-02 20:47:45 +0100 |
commit | f141e12e1f3442c7a1be11df74e9722420003e4a (patch) | |
tree | 960ea0463f56c534a5c2ac9f1f100c2769c1404e /src | |
parent | cfe456468882503c232aa91f48c778e8d0caba34 (diff) | |
parent | f8aa6d676c1a129d9322b26b3a235e2cd69c4f43 (diff) | |
download | glutin-f141e12e1f3442c7a1be11df74e9722420003e4a.tar.gz glutin-f141e12e1f3442c7a1be11df74e9722420003e4a.zip |
Merge pull request #153 from tomaka/fix-multisampling-x11
Fix multisampling not working on X11
Diffstat (limited to 'src')
-rw-r--r-- | src/x11/window/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 72c7133..206b0b2 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), |