Fix build with older libgbm

The code for the !HAVE_GBM_BO_GET_FD_FOR_PLANE case needed an explicit
constructor call.
This commit is contained in:
Fabian Vogt 2022-09-16 19:10:44 +02:00
parent fa538edc74
commit 494feb2eea

View file

@ -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);
#endif