summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-09-05 08:59:11 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-09-05 08:59:18 +0200
commitb9948da4b11d4bafb814432d068d0d4cbd2e9175 (patch)
treeff233cf2987bdb3a58a262c08eeebb5d25f316b9
parent2b743cdca353f84959dac47e4ca24615c6f1830a (diff)
parent52cb9a55a6858176bd9e0842682aa618b383aee6 (diff)
Merge "Merge remote-tracking branch 'origin/5.14' into 5.15"
-rw-r--r--src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp6
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) {