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
wilder/Plasma/6.2
Xaver Hugl 2 years ago
parent e5805fbd62
commit 2a13a33040
  1. 2
      src/platformsupport/scenes/opengl/abstract_egl_backend.cpp

@ -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;
}

Loading…
Cancel
Save