Silence Mac OpenGL deprecation
macOS has deprecated OpenGL as of macOS 10.14. Chromium is moving to
using Metal more and more, but we're going to be forced to keep using
OpenGL, so explicitly silence the OpenGL deprecation warnings.
Bug: chromium:1393687
Change-Id: I668e8d9bf57669f715f341f940ea12f3293faa9a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/285560
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38771}
diff --git a/test/BUILD.gn b/test/BUILD.gn
index 0908038..563825d 100644
--- a/test/BUILD.gn
+++ b/test/BUILD.gn
@@ -1086,6 +1086,7 @@
"OpenGL.framework",
"CoreVideo.framework",
]
+ defines = [ "GL_SILENCE_DEPRECATION" ]
}
}
@@ -1121,6 +1122,9 @@
"gl/gl_renderer.h",
]
}
+ if (is_mac) {
+ defines = [ "GL_SILENCE_DEPRECATION" ]
+ }
if ((is_linux || is_chromeos) && rtc_use_x11) {
sources += [