summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDoug Nazar <nazard@nazar.ca>2021-04-23 14:05:45 -0400
committerDoug Nazar <nazard@nazar.ca>2021-04-24 22:26:36 -0400
commitb14c2e6fb0702d64cf286d681b692571184e98e5 (patch)
treecc118fa3daaee37fe473a9972ace536904f43e94 /tests
parent403e0024f11cec97d5431b27addef0ce6831205b (diff)
downloadgstreamer-plugins-base-b14c2e6fb0702d64cf286d681b692571184e98e5.tar.gz
opengl: Silence macOS OpenGL deprecations
As of macOS 10.14 the entire OpenGL system is deprecated. No need to log the general warnings about it. Specific warnings are still enabled. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1123>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/examples/gl/cocoa/cocoa-videooverlay.m4
-rw-r--r--tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/examples/gl/cocoa/cocoa-videooverlay.m b/tests/examples/gl/cocoa/cocoa-videooverlay.m
index 3151726bc..faddfc88c 100755
--- a/tests/examples/gl/cocoa/cocoa-videooverlay.m
+++ b/tests/examples/gl/cocoa/cocoa-videooverlay.m
@@ -18,6 +18,10 @@
* Boston, MA 02110-1301, USA.
*/
+#if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) || MAC_OS_X_VERSION_MAX_ALLOWED >= 1014
+# define GL_SILENCE_DEPRECATION
+#endif
+
#include <Cocoa/Cocoa.h>
#include <gst/gst.h>
#include <gst/video/videooverlay.h>
diff --git a/tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm b/tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm
index 245ec0fe4..518cb4a51 100644
--- a/tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm
+++ b/tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm
@@ -19,6 +19,10 @@
* Boston, MA 02110-1301, USA.
*/
+#if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) || MAC_OS_X_VERSION_MAX_ALLOWED >= 1014
+# define GL_SILENCE_DEPRECATION
+#endif
+
#import <Cocoa/Cocoa.h>
void *qt_current_nsopengl_context()
{