From 1a7ca38fa39b399c37190632d30835c8e82857b7 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 9 Aug 2024 18:01:57 +0200 Subject: [PATCH] drm: fix custom mode check --- 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 42da324..ff2281d 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1379,7 +1379,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) { const uint32_t COMMITTED = STATE.committed; if ((COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_ENABLED) && STATE.enabled) { - if (!STATE.mode && STATE.customMode) { + if (!STATE.mode && !STATE.customMode) { backend->backend->log(AQ_LOG_ERROR, "drm: No mode on enable commit"); return false; }