diff --git a/src/plugins/platforms/drm/drm_gpu.cpp b/src/plugins/platforms/drm/drm_gpu.cpp index 62eb58e48d..520f6fc5f8 100644 --- a/src/plugins/platforms/drm/drm_gpu.cpp +++ b/src/plugins/platforms/drm/drm_gpu.cpp @@ -331,7 +331,8 @@ bool DrmGpu::updateOutputs() } m_pipelines << config; - for (const auto &pipeline : qAsConst(config)) { + for (auto it = config.crbegin(); it != config.crend(); it++) { + const auto &pipeline = *it; auto output = pipeline->output(); if (pipeline->connector()->isNonDesktop()) { if (const auto &leaseOutput = findLeaseOutput(pipeline->connector()->id())) {