From c80757d78263a801335c2de197fc416c8f59b791 Mon Sep 17 00:00:00 2001 From: der richter Date: Wed, 30 Oct 2024 22:42:26 +0100 Subject: [PATCH] videotoolbox: silence OpenGL deprecation warnings --- osdep/mac/compat.h | 4 ++++ video/out/hwdec/hwdec_mac_gl.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/osdep/mac/compat.h b/osdep/mac/compat.h index 43a1a3b1ea..3f9d9fc2e0 100644 --- a/osdep/mac/compat.h +++ b/osdep/mac/compat.h @@ -19,6 +19,10 @@ #include "config.h" +#ifndef GL_SILENCE_DEPRECATION +#define GL_SILENCE_DEPRECATION +#endif + #if !HAVE_MACOS_12_FEATURES #define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster #endif diff --git a/video/out/hwdec/hwdec_mac_gl.c b/video/out/hwdec/hwdec_mac_gl.c index b73f5b967d..9c3ff5d4d6 100644 --- a/video/out/hwdec/hwdec_mac_gl.c +++ b/video/out/hwdec/hwdec_mac_gl.c @@ -19,6 +19,8 @@ #include +#include "osdep/mac/compat.h" + #include #include #include