buffer: Fix error check and use non-linear

pixman-rendering
Andri Yngvason 2020-06-24 18:32:24 +00:00
parent 8c9211eed6
commit 0b15b465df
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ static struct wv_buffer* wv_buffer_create_dmabuf(int width, int height,
self->format = fourcc; self->format = fourcc;
self->bo = gbm_bo_create(gbm_device, width, height, fourcc, self->bo = gbm_bo_create(gbm_device, width, height, fourcc,
GBM_BO_USE_RENDERING | GBM_BO_USE_LINEAR); GBM_BO_USE_RENDERING);
if (self->bo) if (!self->bo)
goto bo_failure; goto bo_failure;
struct zwp_linux_buffer_params_v1* params; struct zwp_linux_buffer_params_v1* params;