diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-11-27 19:01:29 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-11-27 15:54:01 -0200 |
commit | 02166a1802a5c17f5b0cebc5ea57f70aee4172ec (patch) | |
tree | 13eabacaba497c2d49fd3043d7e71073336b0c05 | |
parent | cf3357ea4517e74ba3a63434c330a1506064b130 (diff) | |
download | qtlocation-mapboxgl-02166a1802a5c17f5b0cebc5ea57f70aee4172ec.tar.gz |
[core] Fix Qt4 on macOS
-rw-r--r-- | platform/qt/mbgl/gl/gl_impl.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/qt/mbgl/gl/gl_impl.hpp b/platform/qt/mbgl/gl/gl_impl.hpp index a9f720db7c..b08efe1eec 100644 --- a/platform/qt/mbgl/gl/gl_impl.hpp +++ b/platform/qt/mbgl/gl/gl_impl.hpp @@ -4,7 +4,12 @@ // Qt4 #if QT_VERSION < 0x050000 - #if MBGL_USE_GLES2 + #if __APPLE__ + #include "TargetConditionals.h" + #include <OpenGL/OpenGL.h> + #include <OpenGL/gl.h> + #include <OpenGL/glext.h> + #elif MBGL_USE_GLES2 #define GL_GLEXT_PROTOTYPES #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> |