buffer: Fix error check and use non-linear
parent
8c9211eed6
commit
0b15b465df
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue