platforms/drm: fix mistake in DrmGbmBuffer
When gbm_bo_get_handle_for_plane isn't supported or doesn't work we'd be passing the buffer format as its handle to drmModeAddFB(2).
This commit is contained in:
parent
46b81be246
commit
0223136712
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ void DrmGbmBuffer::initialize()
|
|||
modifiers[i] = gbm_bo_get_modifier(m_bo);
|
||||
}
|
||||
} else {
|
||||
handles[0] = gbm_bo_get_format(m_bo);
|
||||
handles[0] = gbm_bo_get_handle(m_bo).u32;
|
||||
strides[0] = gbm_bo_get_stride(m_bo);
|
||||
modifiers[0] = DRM_FORMAT_MOD_INVALID;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue