diff options
-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) { |