From cb52a785425ca69930f0f224c3029e6f7fb2a63a Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Thu, 10 Dec 2015 19:12:08 -0800 Subject: [PATCH] [Qt] Define the viewport size before rendering --- platform/qt/app/mapwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp index 08581835a..8827bea4f 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(); }