mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 23:12:16 +02:00
Merge pull request #15887 from sethalves/set-default-gl-format
BUGZ-926: use the correct gl format when creating the initial platform window
This commit is contained in:
commit
31582cf857
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue