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
This commit is contained in:
Xaver Hugl 2024-03-14 02:07:50 +01:00
parent e5805fbd62
commit 2a13a33040

View file

@ -139,7 +139,7 @@ void AbstractEglBackend::initWayland()
QHash<uint32_t, QList<uint64_t>> 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;
}