diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-06-22 01:40:40 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-06-22 21:09:37 +0200 |
commit | 883e21dbb743831c3e100043717909e5819174ce (patch) | |
tree | b1c6b1a3178a98215ad7a8b840aa6e4e5698e5bc /src/video | |
parent | 0d5d3083bd6f0f3c51b15d58a6cb525912e1b775 (diff) | |
download | openttd-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.mm | 2 | ||||
-rw-r--r-- | src/video/opengl.cpp | 1 |
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> |