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