Commit 6569bf80 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

EglGbmBackend: use output reference

CCBUG: 432707
parent 3cbbdbee
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment