mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
Fix vsync not being disabled by default in cocoa
This commit is contained in:
parent
b72ac990e6
commit
e1ab181cdb
|
@ -553,10 +553,8 @@ impl Window {
|
||||||
};
|
};
|
||||||
|
|
||||||
cxt.setView_(view);
|
cxt.setView_(view);
|
||||||
if builder.vsync {
|
let value = if builder.vsync { 1 } else { 0 };
|
||||||
let value = 1;
|
cxt.setValues_forParameter_(&value, NSOpenGLContextParameter::NSOpenGLCPSwapInterval);
|
||||||
cxt.setValues_forParameter_(&value, NSOpenGLContextParameter::NSOpenGLCPSwapInterval);
|
|
||||||
}
|
|
||||||
|
|
||||||
(Some(cxt), Some(pf))
|
(Some(cxt), Some(pf))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue