summaryrefslogtreecommitdiff
path: root/platform/qt/test
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 /platform/qt/test
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 'platform/qt/test')
-rw-r--r--platform/qt/test/headless_backend_qt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/qt/test/headless_backend_qt.cpp b/platform/qt/test/headless_backend_qt.cpp
index 00b519d5bf..401ce55a7f 100644
--- a/platform/qt/test/headless_backend_qt.cpp
+++ b/platform/qt/test/headless_backend_qt.cpp
@@ -1,10 +1,11 @@
#include <mbgl/gl/headless_backend.hpp>
-#include <QGLContext>
#include <QGLWidget>
#if QT_VERSION >= 0x050000
#include <QOpenGLContext>
+#else
+#include <QGLContext>
#endif
#include <cassert>