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:
parent
fa538edc74
commit
494feb2eea
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue