diff options
Diffstat (limited to 'src')
-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> |