Fix vsync not being disabled by default in cocoa

This commit is contained in:
Felix Kaaman 2015-05-23 18:35:47 +02:00
parent b72ac990e6
commit e1ab181cdb

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 {