Commit bc57e89b authored by Vlad Zahorodnii's avatar Vlad Zahorodnii Committed by Aleix Pol Gonzalez
Browse files

backends/drm: Fix file descriptor check

parent ad45deaf
Pipeline #172629 passed with stage
in 12 minutes and 28 seconds
......@@ -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();
......
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