From 2a13a330404c8d8a95f6264512aa06b0a560f55b Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Thu, 14 Mar 2024 02:07:50 +0100 Subject: [PATCH] platformsupport/scenes/opengl: advertise formats unnknown to KWin too While KWin may not have information about the formats, that doesn't mean KWin should filter them out - EGL can still import them, so allow clients to use them --- src/platformsupport/scenes/opengl/abstract_egl_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp b/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp index 431a972562..b0db6626b2 100644 --- a/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp +++ b/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp @@ -139,7 +139,7 @@ void AbstractEglBackend::initWayland() QHash> set; for (auto it = formats.constBegin(); it != formats.constEnd(); it++) { const auto info = FormatInfo::get(it.key()); - if (!info || (bpc && bpc != info->bitsPerColor)) { + if (bpc && (!info || bpc != info->bitsPerColor)) { continue; }