summaryrefslogtreecommitdiff
path: root/tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm')
-rw-r--r--tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm4
1 files changed, 4 insertions, 0 deletions
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()
{