diff options
author | Kai Uwe Broulik <kde@privat.broulik.de> | 2024-01-02 13:12:01 +0100 |
---|---|---|
committer | Kai Uwe Broulik <kde@privat.broulik.de> | 2024-01-09 19:05:33 +0100 |
commit | 6d7bf2a494b0f12972cf313215a268fe9e54678b (patch) | |
tree | 25863ebe81684e17043a26ef93e17d33224b09d9 /src | |
parent | 5b6a7eeb224f471fa534c23249dc881a77182103 (diff) |
QWaylandEglWindow: Pass window surface format to q_glFormatFromConfig
Otherwise it disregards the window's swap interval preference.
Fixes: QTBUG-120477
Pick-to: 6.7 6.6 6.5
Change-Id: Icc6b192f9f317a80acdf4b588ee3f1c26f2ddf0a
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp | 2 |
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()); |