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
......@@ -83,8 +83,11 @@ main(int argc, char* argv[])
QCoreApplication::setApplicationVersion(QString(VERSION_STRING));
QApplication::setHighDpiScaleFactorRoundingPolicy(
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
auto newArgv = parseInputArgument(argc, argv, qtWebEngineChromiumFlags);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment