drm: fix crash for connectors without a fallback mode
This commit is contained in:
parent
5b34d0df1f
commit
014a5f3654
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue