mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 14:21:31 +11:00
Merge pull request #153 from tomaka/fix-multisampling-x11
Fix multisampling not working on X11
This commit is contained in:
commit
f141e12e1f
|
@ -70,7 +70,6 @@ impl Window {
|
||||||
ffi::GLX_DEPTH_SIZE, 24,
|
ffi::GLX_DEPTH_SIZE, 24,
|
||||||
ffi::GLX_STENCIL_SIZE, 8,
|
ffi::GLX_STENCIL_SIZE, 8,
|
||||||
ffi::GLX_DOUBLEBUFFER, 1,
|
ffi::GLX_DOUBLEBUFFER, 1,
|
||||||
0
|
|
||||||
];
|
];
|
||||||
|
|
||||||
if let Some(val) = builder.multisampling {
|
if let Some(val) = builder.multisampling {
|
||||||
|
@ -80,6 +79,8 @@ impl Window {
|
||||||
visual_attributes.push(val as libc::c_int);
|
visual_attributes.push(val as libc::c_int);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
visual_attributes.push(0);
|
||||||
|
|
||||||
let mut num_fb: libc::c_int = mem::uninitialized();
|
let mut num_fb: libc::c_int = mem::uninitialized();
|
||||||
|
|
||||||
let fb = ffi::glx::ChooseFBConfig(display, ffi::XDefaultScreen(display),
|
let fb = ffi::glx::ChooseFBConfig(display, ffi::XDefaultScreen(display),
|
||||||
|
|
Loading…
Reference in a new issue