From 0b15b465dff89aae8f43482942fff45afc68d702 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Wed, 24 Jun 2020 18:32:24 +0000 Subject: [PATCH] buffer: Fix error check and use non-linear --- src/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buffer.c b/src/buffer.c index bdfedc3..e17f5f8 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -82,8 +82,8 @@ static struct wv_buffer* wv_buffer_create_dmabuf(int width, int height, self->format = fourcc; self->bo = gbm_bo_create(gbm_device, width, height, fourcc, - GBM_BO_USE_RENDERING | GBM_BO_USE_LINEAR); - if (self->bo) + GBM_BO_USE_RENDERING); + if (!self->bo) goto bo_failure; struct zwp_linux_buffer_params_v1* params;