mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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>
This commit is contained in:
parent
403e0024f1
commit
b14c2e6fb0
8 changed files with 30 additions and 0 deletions
|
@ -22,6 +22,10 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#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 "gstglcaopengllayer.h"
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#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 "gstglcontext_cocoa.h"
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#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/gl/cocoa/gstgldisplay_cocoa.h>
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#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 <QuartzCore/QuartzCore.h>
|
||||
|
||||
|
|
|
@ -55,6 +55,9 @@
|
|||
/* OpenGL for desktop systems */
|
||||
#if GST_GL_HAVE_OPENGL
|
||||
# ifdef __APPLE__
|
||||
# if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) || MAC_OS_X_VERSION_MAX_ALLOWED >= 1014
|
||||
# define GL_SILENCE_DEPRECATION
|
||||
# endif
|
||||
# include <OpenGL/OpenGL.h>
|
||||
# include <OpenGL/gl.h>
|
||||
# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
|
||||
|
|
|
@ -351,6 +351,9 @@ if need_api_opengl != 'no' or need_platform_glx != 'no'
|
|||
opengl_includes = ''
|
||||
if host_system == 'darwin'
|
||||
opengl_includes += '''
|
||||
#if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) || MAC_OS_X_VERSION_MAX_ALLOWED >= 1014
|
||||
# define GL_SILENCE_DEPRECATION
|
||||
#endif
|
||||
#include <OpenGL/OpenGL.h>
|
||||
#include <OpenGL/gl.h>
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue