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}
This commit is contained in:
Avi Drissman 2022-11-29 15:43:12 -05:00 committed by WebRTC LUCI CQ
parent 3f2a3b19e3
commit 539757b50e

View File

@ -1086,6 +1086,7 @@ if (is_mac) {
"OpenGL.framework", "OpenGL.framework",
"CoreVideo.framework", "CoreVideo.framework",
] ]
defines = [ "GL_SILENCE_DEPRECATION" ]
} }
} }
@ -1121,6 +1122,9 @@ rtc_library("test_renderer_generic") {
"gl/gl_renderer.h", "gl/gl_renderer.h",
] ]
} }
if (is_mac) {
defines = [ "GL_SILENCE_DEPRECATION" ]
}
if ((is_linux || is_chromeos) && rtc_use_x11) { if ((is_linux || is_chromeos) && rtc_use_x11) {
sources += [ sources += [