summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2020-07-08 17:44:13 +0200
committerMichal Klocek <michal.klocek@qt.io>2020-08-04 12:45:05 +0200
commitef432baaed4f8edb7ebe32fbcaf96a4c701e76e1 (patch)
treebc3e1c07b961bb5cd1ddc31d24c27ec1f3c348b0 /src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
parent0a25bd4c4b75774de6970e6cf9e8e0c6c57eadec (diff)
Remove workaround for incorrect version of surface format macOS
This should be already fixed. Task-number: QTBUG-63180 Change-Id: I766cd67f83e3344c5072e0ed3bbf03be3ea35e22 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp')
-rw-r--r--src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp b/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
index 5f674f239..498b4af79 100644
--- a/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
+++ b/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
@@ -195,19 +195,9 @@ RenderWidgetHostViewQtDelegateWidget::RenderWidgetHostViewQtDelegateWidget(Rende
int major;
int minor;
QSurfaceFormat::OpenGLContextProfile profile;
-#ifdef Q_OS_MACOS
- // Due to QTBUG-63180, requesting the sharedFormat.majorVersion() on macOS will lead to
- // a failed creation of QQuickWidget shared context. Thus make sure to request the
- // major version specified in the defaultFormat instead.
- major = defaultFormat.majorVersion();
- minor = defaultFormat.minorVersion();
- profile = defaultFormat.profile();
-#else
major = sharedFormat.majorVersion();
minor = sharedFormat.minorVersion();
profile = sharedFormat.profile();
-#endif
-
// Make sure the OpenGL profile of the QQuickWidget matches the shared context profile.
// It covers the following cases:
// 1) Desktop OpenGL Core Profile.