use the correct gl format when creating the initial platform window

This commit is contained in:
Seth Alves 2019-07-05 10:48:57 -07:00
parent 7b3fa22d0c
commit 708979a30c

View file

@ -1465,6 +1465,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
_saveAvatarOverrideUrl = true;
}
// setDefaultFormat has no effect after the platform window has been created, so call it here.
QSurfaceFormat::setDefaultFormat(getDefaultOpenGLSurfaceFormat());
_glWidget = new GLCanvas();
getApplicationCompositor().setRenderingWidget(_glWidget);
_window->setCentralWidget(_glWidget);