mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
Fix vsync not being disabled by default in cocoa
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user