Skip to content
Snippets Groups Projects
Commit 9ada53ac authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Sébastien Blin
Browse files

window: set graphics backend to vulkan for Windows

Qt on Windows defaults to Direct3D rendering backend which causes
flickering and visualy glitchy resizing.

Gitlab: #601
Change-Id: I175d6131aca234f557234a23984e46f94c7d5417
parent 784e08a1
No related branches found
No related tags found
No related merge requests found
...@@ -83,8 +83,11 @@ main(int argc, char* argv[]) ...@@ -83,8 +83,11 @@ main(int argc, char* argv[])
QCoreApplication::setApplicationVersion(QString(VERSION_STRING)); QCoreApplication::setApplicationVersion(QString(VERSION_STRING));
QApplication::setHighDpiScaleFactorRoundingPolicy( QApplication::setHighDpiScaleFactorRoundingPolicy(
Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#if defined(__APPLE__)
QQuickWindow::setGraphicsApi(QSGRendererInterface::Metal); #if defined(Q_OS_MACOS)
QQuickWindow::setGraphicsApi(QSGRendererInterface::MetalRhi);
#elif defined(Q_OS_WIN)
QQuickWindow::setGraphicsApi(QSGRendererInterface::VulkanRhi);
#endif #endif
auto newArgv = parseInputArgument(argc, argv, qtWebEngineChromiumFlags); auto newArgv = parseInputArgument(argc, argv, qtWebEngineChromiumFlags);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment