Codechange: [OSX] We use OpenGL even if Apple doesn't like it.

This commit is contained in:
Michael Lutz 2021-06-22 01:40:40 +02:00
parent 0d5d3083bd
commit 883e21dbb7
2 changed files with 3 additions and 0 deletions

View File

@ -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>

View File

@ -22,6 +22,7 @@
#define GL_GLEXT_PROTOTYPES
#if defined(__APPLE__)
# define GL_SILENCE_DEPRECATION
# include <OpenGL/gl3.h>
#else
# include <GL/gl.h>