mirror of
https://github.com/lubosz/overte.git
synced 2025-04-15 19:47:38 +02:00
use the correct gl format when creating the initial platform window
This commit is contained in:
parent
7b3fa22d0c
commit
708979a30c
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