Commit 5a9959c7 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

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).

(cherry picked from commit 02231367)
parent 9a210ec0
......@@ -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;
Markdown is supported
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