Merge pull request #469 from fkaa/cocoa-vsync

Fix vsync not being disabled by default in cocoa
This commit is contained in:
tomaka 2015-05-23 19:25:56 +02:00
commit 1377f276b7

View file

@ -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 {