diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-10-31 15:21:39 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-10-31 15:58:59 +0200 |
commit | a815c16ab32645b098a3ae86c4895cbeccc6135a (patch) | |
tree | 927beb99ac9ae17411099db7f8c026c66cc6255f /platform/qt | |
parent | c65465c02e19f191f63e8e6fdb31441b309e1def (diff) | |
download | qtlocation-mapboxgl-a815c16ab32645b098a3ae86c4895cbeccc6135a.tar.gz |
[qt] Fix build on some archs
When building for certain platforms, don't redefine OpenGL constants
we use.
Diffstat (limited to 'platform/qt')
-rw-r--r-- | platform/qt/mbgl/gl/gl_impl.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/qt/mbgl/gl/gl_impl.hpp b/platform/qt/mbgl/gl/gl_impl.hpp index 218c528c66..a9f720db7c 100644 --- a/platform/qt/mbgl/gl/gl_impl.hpp +++ b/platform/qt/mbgl/gl/gl_impl.hpp @@ -19,8 +19,13 @@ #include <QOpenGLContext> #include <QOpenGLFunctions> + #ifndef GL_RGBA8_OES #define GL_RGBA8_OES GL_RGBA8 + #endif + + #ifndef GL_DEPTH24_STENCIL8_OES #define GL_DEPTH24_STENCIL8_OES GL_DEPTH24_STENCIL8 + #endif #define glActiveTexture(...) QOpenGLContext::currentContext()->functions()->glActiveTexture(__VA_ARGS__) #define glAttachShader(...) QOpenGLContext::currentContext()->functions()->glAttachShader(__VA_ARGS__) |