aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--src/osx/mod.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/README.md b/README.md
index 76cc876..a9c38c9 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,6 @@ fn main() {
- You must call `glFlush` before `swap_buffers`, or else on Windows 8 nothing will be visible on the window
- Pixel formats are not implemented
- - If you don't have MinGW installed, you will need to provide `libgdi32.a` and `libopengl32.a` ; you can put them in `C:\Users\you\.rust`
### X11
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)
}