From 883e21dbb743831c3e100043717909e5819174ce Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Tue, 22 Jun 2021 01:40:40 +0200 Subject: [PATCH] Codechange: [OSX] We use OpenGL even if Apple doesn't like it. --- src/video/cocoa/cocoa_ogl.mm | 2 ++ src/video/opengl.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/video/cocoa/cocoa_ogl.mm b/src/video/cocoa/cocoa_ogl.mm index 96c3ea1bfe..81222d2abf 100644 --- a/src/video/cocoa/cocoa_ogl.mm +++ b/src/video/cocoa/cocoa_ogl.mm @@ -12,6 +12,8 @@ #include "../../stdafx.h" #include "../../os/macosx/macos.h" +#define GL_SILENCE_DEPRECATION + #define Rect OTTDRect #define Point OTTDPoint #import diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp index 6e37db03ba..8ac12b959a 100644 --- a/src/video/opengl.cpp +++ b/src/video/opengl.cpp @@ -22,6 +22,7 @@ #define GL_GLEXT_PROTOTYPES #if defined(__APPLE__) +# define GL_SILENCE_DEPRECATION # include #else # include