Ignore -Wdeprecated-declarations for NSOpenGLContext.
PiperOrigin-RevId: 516500366 Change-Id: I39d974626e51627c767c52a7f90135963fdeb1c2
This commit is contained in:
committed by
Copybara-Service
parent
2f0fb1e4ef
commit
b6080108c3
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user