[Qt] Define the viewport size before rendering
This commit is contained in:
@@ -152,6 +152,8 @@ void MapWindow::resizeGL(int w, int h)
|
||||
|
||||
void MapWindow::paintGL()
|
||||
{
|
||||
glViewport(0, 0, width(), height());
|
||||
|
||||
m_frameDraws++;
|
||||
m_map.render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user