summaryrefslogtreecommitdiff
path: root/platform/qt/app/mapwindow.cpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2018-01-26 18:20:46 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2018-02-09 20:28:54 +0200
commit673730ccd423aed8deeba6889409f02cb1e9071d (patch)
tree1087feccfe8d0d415288a6200e0ca9b02c5f1a19 /platform/qt/app/mapwindow.cpp
parenta4e95c3da322113f8db732133cb9541a38accbaf (diff)
downloadqtlocation-mapboxgl-673730ccd423aed8deeba6889409f02cb1e9071d.tar.gz
[qt] Implement FBO handling
Needed for rendering 3D extrusions properly.
Diffstat (limited to 'platform/qt/app/mapwindow.cpp')
-rw-r--r--platform/qt/app/mapwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp
index 89047bd948..f6d5473192 100644
--- a/platform/qt/app/mapwindow.cpp
+++ b/platform/qt/app/mapwindow.cpp
@@ -442,6 +442,9 @@ void MapWindow::initializeGL()
void MapWindow::paintGL()
{
m_frameDraws++;
- m_map->resize(size(), size() * pixelRatio());
+ m_map->resize(size());
+#if QT_VERSION >= 0x050400
+ m_map->setFramebufferObject(defaultFramebufferObject(), size() * pixelRatio());
+#endif
m_map->render();
}