diff --git a/src/plugins/platforms/drm/egl_gbm_backend.cpp b/src/plugins/platforms/drm/egl_gbm_backend.cpp index ab332c6a9b..2f01afb415 100644 --- a/src/plugins/platforms/drm/egl_gbm_backend.cpp +++ b/src/plugins/platforms/drm/egl_gbm_backend.cpp @@ -193,14 +193,8 @@ bool EglGbmBackend::addOutput(DrmAbstractOutput *drmOutput) { Output newOutput; newOutput.output = drmOutput; - if (isPrimary()) { - if (!resetOutput(newOutput)) { - return false; - } - } else { - if (!renderingBackend()->addOutput(drmOutput)) { - return false; - } + if (!isPrimary() && !renderingBackend()->addOutput(drmOutput)) { + return false; } m_outputs.insert(drmOutput, newOutput); return true;