Skip to content
GitLab
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
bc57e89b
Commit
bc57e89b
authored
May 06, 2022
by
Vlad Zahorodnii
Committed by
Aleix Pol Gonzalez
May 06, 2022
Browse files
backends/drm: Fix file descriptor check
parent
ad45deaf
Pipeline
#172629
passed with stage
in 12 minutes and 28 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/backends/drm/drm_buffer_gbm.cpp
View file @
bc57e89b
...
...
@@ -186,7 +186,7 @@ std::shared_ptr<GbmBuffer> GbmBuffer::importBuffer(DrmGpu *gpu, KWaylandServer::
std
::
shared_ptr
<
GbmBuffer
>
GbmBuffer
::
importBuffer
(
DrmGpu
*
gpu
,
GbmBuffer
*
buffer
)
{
const
auto
fds
=
buffer
->
fds
();
if
(
!
fds
[
0
])
{
if
(
fds
[
0
]
==
-
1
)
{
return
nullptr
;
}
const
auto
strides
=
buffer
->
strides
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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