Fixed OpenGL resizeing in MainWindow.