diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-09-05 08:59:11 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-09-05 08:59:18 +0200 |
commit | b9948da4b11d4bafb814432d068d0d4cbd2e9175 (patch) | |
tree | ff233cf2987bdb3a58a262c08eeebb5d25f316b9 | |
parent | 2b743cdca353f84959dac47e4ca24615c6f1830a (diff) | |
parent | 52cb9a55a6858176bd9e0842682aa618b383aee6 (diff) | |
download | qtlocation-b9948da4b11d4bafb814432d068d0d4cbd2e9175.tar.gz |
Merge "Merge remote-tracking branch 'origin/5.14' into 5.15"
-rw-r--r-- | src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp b/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp index ed36cd5f..b0967499 100644 --- a/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp +++ b/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp @@ -54,6 +54,7 @@ #include <QtQuick/QQuickWindow> #include <QtQuick/QSGImageNode> #include <QtQuick/private/qsgtexture_p.h> +#include <QtQuick/private/qsgcontext_p.h> // for debugging the context name #include <QMapboxGL> @@ -101,6 +102,11 @@ QSGNode *QGeoMapMapboxGLPrivate::updateSceneGraph(QSGNode *node, QQuickWindow *w QOpenGLContext *currentCtx = QOpenGLContext::currentContext(); if (!currentCtx) { qWarning("QOpenGLContext is NULL!"); + qWarning() << "You are running on QSG backend " << QSGContext::backend(); + qWarning("The MapboxGL plugin works with both Desktop and ES 2.0+ OpenGL versions."); + qWarning("Verify that your Qt is built with OpenGL, and what kind of OpenGL."); + qWarning("To force using a specific OpenGL version, check QSurfaceFormat::setRenderableType and QSurfaceFormat::setDefaultFormat"); + return node; } if (m_useFBO) { |