summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-08-21 13:54:00 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-08-21 11:04:08 +0000
commit447814d8f49f3a8dcce526f84e335e3ed50daf17 (patch)
tree3b45a51e34be8d60cf519a676f0d15c1d3d3bc9f
parent765fdaaa86092bb034b3ac1c648be95faa413f50 (diff)
downloadqtlocation-447814d8f49f3a8dcce526f84e335e3ed50daf17.tar.gz
Fix 3D buildings not being rendered
Let Mapbox GL know about what FBO is in use so it can set texture attachments properly. Change-Id: Ie70de0f449eecf1d8a1f1dec8b89e60495ca5386 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
-rw-r--r--src/plugins/geoservices/mapboxgl/qsgmapboxglnode.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/geoservices/mapboxgl/qsgmapboxglnode.cpp b/src/plugins/geoservices/mapboxgl/qsgmapboxglnode.cpp
index d338a51a..3f31997c 100644
--- a/src/plugins/geoservices/mapboxgl/qsgmapboxglnode.cpp
+++ b/src/plugins/geoservices/mapboxgl/qsgmapboxglnode.cpp
@@ -65,6 +65,7 @@ void QSGMapboxGLTextureNode::resize(const QSize &size, qreal pixelRatio)
m_map->resize(minSize, fbSize);
m_fbo.reset(new QOpenGLFramebufferObject(fbSize, QOpenGLFramebufferObject::CombinedDepthStencil));
+ m_map->setFramebufferObject(m_fbo->handle());
QSGPlainTexture *fboTexture = static_cast<QSGPlainTexture *>(texture());
if (!fboTexture)