diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 15885e1266c9..1d0b4905f9c5 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1579,7 +1579,7 @@ static void displays_arrangement_changed(CGDirectDisplayID display_id, CGDisplay // setup our display link, this will inform us when a refresh is needed CVDisplayLinkCreateWithActiveCGDisplays(&displayLink); CVDisplayLinkSetOutputCallback(displayLink, &DisplayLinkCallback, this); - CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(displayLink, context.CGLContextObj, pixelFormat.CGLPixelFormatObj); + CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(displayLink, static_cast(context.CGLContextObj), static_cast(pixelFormat.CGLPixelFormatObj)); CVDisplayLinkStart(displayLink); // initialise a conditional lock object