summaryrefslogtreecommitdiffstats
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 04:35:44 +0000
commit6a8284f36cfb508c713429d0f0edf2d950e6ca5b (patch)
tree738c407334c3735dadc0fdadbb2a6061b66e3c3f
parent2a1ec6fc5ed7fa820dbb5ca7095584c62c684ff9 (diff)
QWaylandEglWindow: Pass window surface format to q_glFormatFromConfig
Otherwise it disregards the window's swap interval preference. Fixes: QTBUG-120477 Pick-to: 6.6 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>
-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());