diff --git a/src/osx/mod.rs b/src/osx/mod.rs index a8cc3acf..fbdedfd0 100644 --- a/src/osx/mod.rs +++ b/src/osx/mod.rs @@ -233,7 +233,7 @@ impl Window { context.setView_(view); if vsync { let value = 1; - context.setValues_forParameter_(&value, NSOpenGLCPSwapInterval); + context.setValues_forParameter_(&value, NSOpenGLContextParameter::NSOpenGLCPSwapInterval); } Some(context) }