aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osx/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
index a8cc3ac..fbdedfd 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)
}