buffer: Fix error check and use non-linear
parent
0178dd8a39
commit
f68bb825e1
|
@ -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