# HG changeset patch # User Michael Lutz # Date 2021-06-21 23:40:40 # Node ID e338424ce8cb162319f2c4ae7a6bb0eaffb9fa47 # Parent 14932b129f4d6f068ba1a3840da8eecd95536f7f Codechange: [OSX] We use OpenGL even if Apple doesn't like it. diff --git a/src/video/cocoa/cocoa_ogl.mm b/src/video/cocoa/cocoa_ogl.mm --- 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 --- 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