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:
parent
e5805fbd62
commit
2a13a33040
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue