Commit 9e9fd926 authored by Fabian Vogt's avatar Fabian Vogt Committed by Vlad Zahorodnii
Browse files

Fix build with older libgbm

The code for the !HAVE_GBM_BO_GET_FD_FOR_PLANE case needed an explicit
constructor call.

(cherry picked from commit 494feb2e)
parent b5f401e8
Pipeline #233110 passed with stage
in 14 minutes and 53 seconds
......@@ -35,7 +35,7 @@ inline DmaBufAttributes dmaBufAttributesForBo(gbm_bo *bo)
return attributes;
attributes.fd[0] = gbm_bo_get_fd(bo);
attributes.fd[0] = FileDescriptor{gbm_bo_get_fd(bo)};
attributes.offset[0] = gbm_bo_get_offset(bo, 0);
attributes.pitch[0] = gbm_bo_get_stride_for_plane(bo, 0);
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