diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 326b02f..1019c4b 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1344,6 +1344,9 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) { const auto MODE = STATE.mode ? STATE.mode : STATE.customMode; + if (!MODE) // modeless commits are invalid + return false; + uint32_t flags = 0; if (!onlyTest) {