From acfea3bd1d9e756c7152e639240d52c6628844b0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 20 Jul 2024 16:58:42 +0200 Subject: [PATCH] drm: reject modeless commits --- src/backend/drm/DRM.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) {