diff --git a/simulate/glfw_corevideo.mm b/simulate/glfw_corevideo.mm index 571cc991..4780384b 100644 --- a/simulate/glfw_corevideo.mm +++ b/simulate/glfw_corevideo.mm @@ -68,7 +68,10 @@ int GlfwCoreVideo::DisplayLinkCallback() { } void GlfwCoreVideo::UpdateDisplayLink() { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" NSOpenGLContext* nsgl = Glfw().glfwGetNSGLContext(window_); +#pragma clang diagnostic pop CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(display_link_, [nsgl CGLContextObj], [nsgl.pixelFormat CGLPixelFormatObj]); }