diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | src/osx/mod.rs | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -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) } |