summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-12-10 19:12:08 -0800
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-04-20 20:55:51 +0300
commitcb52a785425ca69930f0f224c3029e6f7fb2a63a (patch)
tree21c2f1aceac2636b95c8d4a3321b400a66652859 /platform
parent5482a46a04e5d56f8e8ca916440d784591812c29 (diff)
downloadqtlocation-mapboxgl-cb52a785425ca69930f0f224c3029e6f7fb2a63a.tar.gz
[Qt] Define the viewport size before rendering
Diffstat (limited to 'platform')
-rw-r--r--platform/qt/app/mapwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp
index 08581835a1..8827bea4fa 100644
--- a/platform/qt/app/mapwindow.cpp
+++ b/platform/qt/app/mapwindow.cpp
@@ -152,6 +152,8 @@ void MapWindow::resizeGL(int w, int h)
void MapWindow::paintGL()
{
+ glViewport(0, 0, width(), height());
+
m_frameDraws++;
m_map.render();
}