buffer: Apply full damage to new dmabuf

pull/6/head
Andri Yngvason 2022-04-09 16:18:35 +00:00
parent e6ea9068f0
commit 9afe099377
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ struct buffer* buffer_create_dmabuf(int width, int height, uint32_t format)
self->height = height;
self->format = format;
pixman_region_init_rect(&self->damage, 0, 0, width, height);
self->bo = gbm_bo_create(gbm_device, width, height, format,
GBM_BO_USE_RENDERING);
if (!self->bo)