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