mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Windows : Fix Video.
Qt set the rendering engine to DirectX by default. createRender was never call in this case. Force to OpenGL.
This commit is contained in:
parent
7f3d774817
commit
c69ac2ee4c
1 changed files with 2 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ DEFINE_ABSTRACT_OBJECT(App)
|
|||
|
||||
App::App(int &argc, char *argv[])
|
||||
: SingleApplication(argc, argv, true, Mode::User | Mode::ExcludeAppPath | Mode::ExcludeAppVersion) {
|
||||
// If not OpenGL, createRender is never call.
|
||||
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
|
||||
// Ignore vertical sync. This way, we avoid blinking on resizes(and other refresh like layouts etc.).
|
||||
auto ignoreVSync = QSurfaceFormat::defaultFormat();
|
||||
ignoreVSync.setSwapInterval(0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue