diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-08-24 03:03:26 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-08-24 03:03:33 +0200 |
commit | f8c1007e513b7df017ae4da2831183f3a66b69fb (patch) | |
tree | df0e08533807fe21e0a5404569ab6dc8e2285915 | |
parent | a13506d54409a78ee13a84052b78050a2f686832 (diff) | |
parent | df19e9181d5080a55b812925d4d59e7cf6c3bb75 (diff) | |
download | qtlocation-f8c1007e513b7df017ae4da2831183f3a66b69fb.tar.gz |
Merge "Merge remote-tracking branch 'origin/5.12' into 5.13"
-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) { |