diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-12-10 19:12:08 -0800 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-04-20 20:55:51 +0300 |
commit | cb52a785425ca69930f0f224c3029e6f7fb2a63a (patch) | |
tree | 21c2f1aceac2636b95c8d4a3321b400a66652859 /platform/qt/app | |
parent | 5482a46a04e5d56f8e8ca916440d784591812c29 (diff) | |
download | qtlocation-mapboxgl-cb52a785425ca69930f0f224c3029e6f7fb2a63a.tar.gz |
[Qt] Define the viewport size before rendering
Diffstat (limited to 'platform/qt/app')
-rw-r--r-- | platform/qt/app/mapwindow.cpp | 2 |
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(); } |