mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 14:51:30 +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);
|
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