diff options
author | Michal Klocek <michal.klocek@qt.io> | 2020-07-16 12:50:45 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2020-08-05 07:22:46 +0200 |
commit | 30754a9f1d0b5d83c7198b8566a4ba401bed6e34 (patch) | |
tree | 2a67b4e51f9deedd9f343dab05cde7fb5d6805a1 /src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | |
parent | 466a6da2a2667e780f96a461875573fc8e5964da (diff) |
Move window decoration check out of qwaylandglcontext
QWaylandGLContext is usead only by wayland-egl. Move
window decoration check to client buffer platform integration.
Change-Id: If26811cd017066afa2508e2f33b33a0fa0b690b3
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp')
-rw-r--r-- | src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp index 3c5f69173..a4cbd0e65 100644 --- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp +++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp @@ -233,11 +233,8 @@ QWaylandGLContext::QWaylandGLContext(EGLDisplay eglDisplay, QWaylandDisplay *dis , m_eglDisplay(eglDisplay) , m_display(display) { - QSurfaceFormat fmt = format; - if (static_cast<QWaylandIntegration *>(QGuiApplicationPrivate::platformIntegration())->display()->supportsWindowDecoration()) - fmt.setAlphaBufferSize(8); - m_config = q_configFromGLFormat(m_eglDisplay, fmt); - m_format = q_glFormatFromConfig(m_eglDisplay, m_config, fmt); + m_config = q_configFromGLFormat(m_eglDisplay, format); + m_format = q_glFormatFromConfig(m_eglDisplay, m_config, format); m_shareEGLContext = share ? static_cast<QWaylandGLContext *>(share)->eglContext() : EGL_NO_CONTEXT; QList<EGLint> eglContextAttrs; |