diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2023-03-29 16:21:37 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2023-04-20 10:31:03 +0200 |
commit | 479d9d965acaff3fc08412d56ce205e8c8822dbf (patch) | |
tree | 63b197df40ec64ad0b83b0365c2a82fa5dfae52b /src/core/api | |
parent | 59e1a33ffa4e9ba670c099e96d2677e06bf665c7 (diff) | |
download | qtwebengine-479d9d965acaff3fc08412d56ce205e8c8822dbf.tar.gz |
Support painting to Direct3D11 using ANGLE
Pick-to: 6.5
Task-number: QTBUG-112280
Fixes: QTBUG-109401
Change-Id: Iaebb79921030ce42bcfe8be1ba46d309c93dca6d
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/api')
-rw-r--r-- | src/core/api/qtwebenginecoreglobal.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/api/qtwebenginecoreglobal.cpp b/src/core/api/qtwebenginecoreglobal.cpp index 3301695b3..d8d3d3b26 100644 --- a/src/core/api/qtwebenginecoreglobal.cpp +++ b/src/core/api/qtwebenginecoreglobal.cpp @@ -212,9 +212,9 @@ static void initialize() // QCoreApplication is not yet instantiated, ensuring the call will be deferred qAddPreRoutine(QtWebEngineCore::initialize); auto api = QQuickWindow::graphicsApi(); - if (api != QSGRendererInterface::OpenGLRhi && api != QSGRendererInterface::VulkanRhi - && api != QSGRendererInterface::MetalRhi) - QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGLRhi); + if (api != QSGRendererInterface::OpenGL && api != QSGRendererInterface::Vulkan + && api != QSGRendererInterface::Metal && api != QSGRendererInterface::Direct3D11) + QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL); #endif // QT_CONFIG(opengl) } |