mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 14:51:30 +11:00
Merge pull request #715 from mbrubeck/glx-double-buffer
Use double buffering by default on GLX
This commit is contained in:
commit
5cdf6c1798
|
@ -415,10 +415,9 @@ unsafe fn choose_fbconfig(glx: &ffi::glx::Glx, extensions: &str, xlib: &ffi::Xli
|
||||||
out.push(stencil as c_int);
|
out.push(stencil as c_int);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(double_buffer) = reqs.double_buffer {
|
let double_buffer = reqs.double_buffer.unwrap_or(true);
|
||||||
out.push(ffi::glx::DOUBLEBUFFER as c_int);
|
out.push(ffi::glx::DOUBLEBUFFER as c_int);
|
||||||
out.push(if double_buffer { 1 } else { 0 });
|
out.push(if double_buffer { 1 } else { 0 });
|
||||||
}
|
|
||||||
|
|
||||||
if let Some(multisampling) = reqs.multisampling {
|
if let Some(multisampling) = reqs.multisampling {
|
||||||
if extensions.split(' ').find(|&i| i == "GLX_ARB_multisample").is_some() {
|
if extensions.split(' ').find(|&i| i == "GLX_ARB_multisample").is_some() {
|
||||||
|
|
Loading…
Reference in a new issue