platformsupport/scenes/opengl: don't access std::nullopt

This commit is contained in:
Xaver Hugl 2024-03-17 18:08:36 +01:00
parent 2a13a33040
commit af3bf939c5

View file

@ -143,7 +143,7 @@ void AbstractEglBackend::initWayland()
continue;
}
const bool externalOnlySupported = withExternalOnlyYUV && info->yuvConversion();
const bool externalOnlySupported = withExternalOnlyYUV && info && info->yuvConversion();
QList<uint64_t> modifiers = externalOnlySupported ? it->allModifiers : it->nonExternalOnlyModifiers;
if (externalOnlySupported && !modifiers.isEmpty()) {