diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-08-21 13:54:00 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-08-21 11:04:08 +0000 |
commit | 447814d8f49f3a8dcce526f84e335e3ed50daf17 (patch) | |
tree | 3b45a51e34be8d60cf519a676f0d15c1d3d3bc9f | |
parent | 765fdaaa86092bb034b3ac1c648be95faa413f50 (diff) | |
download | qtlocation-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.cpp | 1 |
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) |