summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2017-03-03 14:31:46 -0800
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-03-03 17:28:07 -0800
commitf6cd017f58f0e31d51c7e877b43aca3fc50d1866 (patch)
tree0d052e1574e26b5e64c5d695af3c8f1bbe5a4555 /include
parenta5f6ee696367e3311334faa03fb55e215174997f (diff)
downloadqtlocation-mapboxgl-f6cd017f58f0e31d51c7e877b43aca3fc50d1866.tar.gz
[Qt] Remove legacy QOpenGL dependency from Qt5 build
OpenGL on Qt5 is offered via QtGui.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/gl/gl.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/gl/gl.hpp b/include/mbgl/gl/gl.hpp
index 7521b4c80d..3a577b289b 100644
--- a/include/mbgl/gl/gl.hpp
+++ b/include/mbgl/gl/gl.hpp
@@ -22,9 +22,9 @@
#define GL_GLEXT_PROTOTYPES
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
-#elif __QT__
+#elif __QT_ && QT_VERSION >= 0x050000
#define GL_GLEXT_PROTOTYPES
- #include <QtOpenGL>
+ #include <QtGui/qopengl.h>
#else
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>