summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-06-22 01:40:40 +0200
committerMichael Lutz <michi@icosahedron.de>2021-06-22 21:09:37 +0200
commit883e21dbb743831c3e100043717909e5819174ce (patch)
treeb1c6b1a3178a98215ad7a8b840aa6e4e5698e5bc /src/video
parent0d5d3083bd6f0f3c51b15d58a6cb525912e1b775 (diff)
downloadopenttd-883e21dbb743831c3e100043717909e5819174ce.tar.xz
Codechange: [OSX] We use OpenGL even if Apple doesn't like it.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/cocoa/cocoa_ogl.mm2
-rw-r--r--src/video/opengl.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/video/cocoa/cocoa_ogl.mm b/src/video/cocoa/cocoa_ogl.mm
index 96c3ea1bf..81222d2ab 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 <Cocoa/Cocoa.h>
diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp
index 6e37db03b..8ac12b959 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 <OpenGL/gl3.h>
#else
# include <GL/gl.h>