[Qt] Define the viewport size before rendering

This commit is contained in:
Thiago Marcos P. Santos
2015-12-10 19:12:08 -08:00
parent 5482a46a04
commit cb52a78542

View File

@@ -152,6 +152,8 @@ void MapWindow::resizeGL(int w, int h)
void MapWindow::paintGL()
{
glViewport(0, 0, width(), height());
m_frameDraws++;
m_map.render();
}