Skip to content

Commit

Permalink
drm: fix crash for connectors without a fallback mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JManch committed Jul 18, 2024
1 parent 5b34d0d commit 014a5f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 014a5f3

Please sign in to comment.