From af3bf939c58168855d35258c2a660ea94d6e8c9d Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sun, 17 Mar 2024 18:08:36 +0100 Subject: [PATCH] platformsupport/scenes/opengl: don't access std::nullopt --- 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 b0db6626b2..35c8755001 100644 --- a/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp +++ b/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp @@ -143,7 +143,7 @@ void AbstractEglBackend::initWayland() continue; } - const bool externalOnlySupported = withExternalOnlyYUV && info->yuvConversion(); + const bool externalOnlySupported = withExternalOnlyYUV && info && info->yuvConversion(); QList modifiers = externalOnlySupported ? it->allModifiers : it->nonExternalOnlyModifiers; if (externalOnlySupported && !modifiers.isEmpty()) {