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:
Xaver Hugl 2021-06-20 18:47:10 +02:00
parent 46b81be246
commit 0223136712

View file

@ -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;
}