From dcac376308cee56d84bc4cd0e5d39ece42f83681 Mon Sep 17 00:00:00 2001 From: JManch <61563764+JManch@users.noreply.github.com> Date: Thu, 18 Jul 2024 10:09:17 +0100 Subject: [PATCH] drm: fix crash for connectors without a fallback mode (#20) --- src/backend/drm/DRM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index ae3cf79..6bb133a 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -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()); }