summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2024-01-02 13:12:01 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-01-10 10:23:32 +0000
commit2ec6b4d3e4dc1c37e2757e7d00137e6c8f7a89fe (patch)
treeb7f3a1f025c462bb0941700e857884281a7321a4 /src
parent8eb7e103e3265bcae6bf39457e3f2452ad530048 (diff)
QWaylandEglWindow: Pass window surface format to q_glFormatFromConfig
Otherwise it disregards the window's swap interval preference. Fixes: QTBUG-120477 Pick-to: 6.5 Change-Id: Icc6b192f9f317a80acdf4b588ee3f1c26f2ddf0a Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit 6d7bf2a494b0f12972cf313215a268fe9e54678b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 6a8284f36cfb508c713429d0f0edf2d950e6ca5b)
Diffstat (limited to 'src')
-rw-r--r--src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp
index 4d7d4787a..f4ed8cd61 100644
--- a/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp
+++ b/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp
@@ -110,7 +110,7 @@ void QWaylandEglWindow::updateSurface(bool create)
if (mDisplay->supportsWindowDecoration())
fmt.setAlphaBufferSize(8);
EGLConfig eglConfig = q_configFromGLFormat(m_clientBufferIntegration->eglDisplay(), fmt);
- m_format = q_glFormatFromConfig(m_clientBufferIntegration->eglDisplay(), eglConfig);
+ m_format = q_glFormatFromConfig(m_clientBufferIntegration->eglDisplay(), eglConfig, fmt);
m_eglSurface = eglCreateWindowSurface(m_clientBufferIntegration->eglDisplay(), eglConfig, eglw, 0);
if (Q_UNLIKELY(m_eglSurface == EGL_NO_SURFACE))
qCWarning(lcQpaWayland, "Could not create EGL surface (EGL error 0x%x)\n", eglGetError());