From c69ac2ee4c0f00eb10c72e6a1965e38c600b7d26 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Tue, 23 Apr 2024 14:29:24 +0200 Subject: [PATCH] Windows : Fix Video. Qt set the rendering engine to DirectX by default. createRender was never call in this case. Force to OpenGL. --- Linphone/core/App.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Linphone/core/App.cpp b/Linphone/core/App.cpp index 68e038c22..ccec73af4 100644 --- a/Linphone/core/App.cpp +++ b/Linphone/core/App.cpp @@ -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);