drm: fix crash for connectors without a fallback mode

This commit is contained in:
Joshua Manchester 2024-07-18 02:58:30 +01:00
parent 5b34d0df1f
commit 014a5f3654
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1122,7 +1122,7 @@ void Aquamarine::SDRMConnector::connect(drmModeConnector* connector) {
aqMode->preferred ? " (preferred)" : ""));
}
if (!currentModeInfo) {
if (!currentModeInfo && fallbackMode) {
output->state->setMode(fallbackMode);
crtc->refresh = calculateRefresh(fallbackMode->modeInfo.value());
}