summaryrefslogtreecommitdiff
path: root/src/webenginequick/api/qtwebenginequickglobal.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2023-03-29 16:21:37 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-04-22 06:35:39 +0000
commit04b23af98ce3d0841eda2ed14391234705b46c64 (patch)
tree6245b31877a6212e3f7c69ffb11da2906f818a48 /src/webenginequick/api/qtwebenginequickglobal.cpp
parentdb2de3ebf9e0a883bd130968868f5927f799aaa9 (diff)
downloadqtwebengine-04b23af98ce3d0841eda2ed14391234705b46c64.tar.gz
Support painting to Direct3D11 using ANGLE
Task-number: QTBUG-112280 Fixes: QTBUG-109401 Change-Id: Iaebb79921030ce42bcfe8be1ba46d309c93dca6d Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit 479d9d965acaff3fc08412d56ce205e8c8822dbf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/webenginequick/api/qtwebenginequickglobal.cpp')
-rw-r--r--src/webenginequick/api/qtwebenginequickglobal.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/webenginequick/api/qtwebenginequickglobal.cpp b/src/webenginequick/api/qtwebenginequickglobal.cpp
index 60f7991c8..f8f520a05 100644
--- a/src/webenginequick/api/qtwebenginequickglobal.cpp
+++ b/src/webenginequick/api/qtwebenginequickglobal.cpp
@@ -47,8 +47,9 @@ void initialize()
// call initialize the same way as widgets do
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);
}
} // namespace QtWebEngineQuick