Ignore -Wdeprecated-declarations for NSOpenGLContext.

PiperOrigin-RevId: 516500366
Change-Id: I39d974626e51627c767c52a7f90135963fdeb1c2
This commit is contained in:
Saran Tunyasuvunakool
2023-03-14 05:52:52 -07:00
committed by Copybara-Service
parent 2f0fb1e4ef
commit b6080108c3
+3
View File
@@ -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]);
}