Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
6569bf80
Commit
6569bf80
authored
Mar 18, 2021
by
Xaver Hugl
Browse files
EglGbmBackend: use output reference
CCBUG: 432707
parent
3cbbdbee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/platforms/drm/egl_gbm_backend.cpp
View file @
6569bf80
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment