From 57fae99f33aa5d092ebb82e9924fbd7fbb932fc7 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 12 Sep 2023 16:23:15 +0200 Subject: [PATCH] backends/drm: check activePending instead of active for when applying a new gamma ramp is allowed The crtc may not be set yet in some cases BUG: 471562 --- src/backends/drm/drm_output.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/drm/drm_output.cpp b/src/backends/drm/drm_output.cpp index d0e0f0c6a6..d7b7f8c575 100644 --- a/src/backends/drm/drm_output.cpp +++ b/src/backends/drm/drm_output.cpp @@ -382,7 +382,7 @@ DrmOutputLayer *DrmOutput::cursorLayer() const bool DrmOutput::setGammaRamp(const std::shared_ptr &transformation) { - if (!m_pipeline->active() || needsColormanagement()) { + if (!m_pipeline->activePending() || needsColormanagement()) { return false; } m_pipeline->setGammaRamp(transformation); @@ -404,7 +404,7 @@ bool DrmOutput::setChannelFactors(const QVector3D &rgb) } m_channelFactors = rgb; if (needsColormanagement()) { - if (!m_pipeline->active()) { + if (!m_pipeline->activePending()) { return false; } QMatrix3x3 ctm;