diff options
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/mobileopengl2graphics.h | 6 | ||||
-rw-r--r-- | src/render/mobileopenglgraphics.h | 6 | ||||
-rw-r--r-- | src/render/modernopenglgraphics.h | 6 | ||||
-rw-r--r-- | src/render/normalopenglgraphics.h | 6 | ||||
-rw-r--r-- | src/render/nullopenglgraphics.h | 6 | ||||
-rw-r--r-- | src/render/opengl/mgltypes.h | 4 | ||||
-rw-r--r-- | src/render/safeopenglgraphics.h | 6 |
7 files changed, 28 insertions, 12 deletions
diff --git a/src/render/mobileopengl2graphics.h b/src/render/mobileopengl2graphics.h index ecd04cc89..d1b5b96a5 100644 --- a/src/render/mobileopengl2graphics.h +++ b/src/render/mobileopengl2graphics.h @@ -39,9 +39,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include <SDL_opengl.h> -#ifndef __native_client__ +#if defined(__APPLE__) +#include <OpenGL/glext.h> +#elif !defined(__native_client__) #include <GL/glext.h> -#endif +#endif // defined(__APPLE__) #endif class OpenGLGraphicsVertexes; diff --git a/src/render/mobileopenglgraphics.h b/src/render/mobileopenglgraphics.h index 7af81a4c8..7f14fc6f8 100644 --- a/src/render/mobileopenglgraphics.h +++ b/src/render/mobileopenglgraphics.h @@ -39,9 +39,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include <SDL_opengl.h> -#ifndef __native_client__ +#if defined(__APPLE__) +#include <OpenGL/glext.h> +#elif !defined(__native_client__) #include <GL/glext.h> -#endif +#endif // defined(__APPLE__) #endif class OpenGLGraphicsVertexes; diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index 0c7d0d5c9..2776cc1fb 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -39,9 +39,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include <SDL_opengl.h> -#ifndef __native_client__ +#if defined(__APPLE__) +#include <OpenGL/glext.h> +#elif !defined(__native_client__) #include <GL/glext.h> -#endif +#endif // defined(__APPLE__) #endif class OpenGLGraphicsVertexes; diff --git a/src/render/normalopenglgraphics.h b/src/render/normalopenglgraphics.h index 05014deed..8f6652775 100644 --- a/src/render/normalopenglgraphics.h +++ b/src/render/normalopenglgraphics.h @@ -39,9 +39,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include <SDL_opengl.h> -#ifndef __native_client__ +#if defined(__APPLE__) +#include <OpenGL/glext.h> +#elif !defined(__native_client__) #include <GL/glext.h> -#endif +#endif // defined(__APPLE__) #endif class OpenGLGraphicsVertexes; diff --git a/src/render/nullopenglgraphics.h b/src/render/nullopenglgraphics.h index fb7cdc806..9d5229674 100644 --- a/src/render/nullopenglgraphics.h +++ b/src/render/nullopenglgraphics.h @@ -39,9 +39,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include <SDL_opengl.h> -#ifndef __native_client__ +#if defined(__APPLE__) +#include <OpenGL/glext.h> +#elif !defined(__native_client__) #include <GL/glext.h> -#endif +#endif // defined(__APPLE__) #endif class OpenGLGraphicsVertexes; diff --git a/src/render/opengl/mgltypes.h b/src/render/opengl/mgltypes.h index cea84350b..96f86bde3 100644 --- a/src/render/opengl/mgltypes.h +++ b/src/render/opengl/mgltypes.h @@ -38,7 +38,11 @@ #ifdef __native_client__ #include <GL/Regal.h> #else +#if defined(__APPLE__) +#include <OpenGL/glext.h> +#else // defined(__APPLE__) #include <GL/glext.h> +#endif // defined(__APPLE__) #endif #endif diff --git a/src/render/safeopenglgraphics.h b/src/render/safeopenglgraphics.h index 212c49e9d..f511db871 100644 --- a/src/render/safeopenglgraphics.h +++ b/src/render/safeopenglgraphics.h @@ -37,9 +37,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include <SDL_opengl.h> -#ifndef __native_client__ +#if defined(__APPLE__) +#include <OpenGL/glext.h> +#elif !defined(__native_client__) #include <GL/glext.h> -#endif +#endif // defined(__APPLE__) #endif class SafeOpenGLGraphics final : public Graphics |