From 6569bf80c37ea46e7507fac17b9f1162b9a9978e Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Thu, 18 Mar 2021 15:22:31 +0100 Subject: [PATCH] EglGbmBackend: use output reference CCBUG: 432707 --- src/plugins/platforms/drm/egl_gbm_backend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/platforms/drm/egl_gbm_backend.cpp b/src/plugins/platforms/drm/egl_gbm_backend.cpp index d07974aa07..59983279cf 100644 --- a/src/plugins/platforms/drm/egl_gbm_backend.cpp +++ b/src/plugins/platforms/drm/egl_gbm_backend.cpp @@ -629,7 +629,7 @@ void EglGbmBackend::setViewport(const Output &output) const QRegion EglGbmBackend::beginFrame(int screenId) { - auto output = m_outputs[screenId]; + Output &output = m_outputs[screenId]; if (output.directScanoutBuffer) { gbm_bo_destroy(output.directScanoutBuffer); output.directScanoutBuffer = nullptr; @@ -697,7 +697,7 @@ bool EglGbmBackend::scanout(int screenId, KWaylandServer::SurfaceInterface *surf return false; } auto buffer = surface->buffer(); - Output output = m_outputs[screenId]; + Output &output = m_outputs[screenId]; if (buffer->linuxDmabufBuffer()->size() != output.output->modeSize()) { return false; }