Lock objc version, add casts to appease libc pointer type conflict. Closes #654
This commit is contained in:
parent
0386d093d1
commit
228732877a
2 changed files with 9 additions and 9 deletions
|
|
@ -310,7 +310,7 @@ impl Window {
|
|||
let obj = context.CGLContextObj();
|
||||
|
||||
let mut opacity = 0;
|
||||
CGLSetParameter(obj, kCGLCPSurfaceOpacity, &mut opacity);
|
||||
CGLSetParameter(obj as *mut _, kCGLCPSurfaceOpacity, &mut opacity);
|
||||
}
|
||||
|
||||
app.activateIgnoringOtherApps_(YES);
|
||||
|
|
@ -558,7 +558,7 @@ impl Window {
|
|||
let value = if opengl.vsync { 1 } else { 0 };
|
||||
cxt.setValues_forParameter_(&value, NSOpenGLContextParameter::NSOpenGLCPSwapInterval);
|
||||
|
||||
CGLEnable(cxt.CGLContextObj(), kCGLCECrashOnRemovedFunctions);
|
||||
CGLEnable(cxt.CGLContextObj() as *mut _, kCGLCECrashOnRemovedFunctions);
|
||||
|
||||
Ok((cxt, pf))
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue