drm-buffer/dumb: Return TRUE when init succeeded

Returning FALSE means it failed, but we returned FALSE even when it
succeeded, meaning it would never succeed.

Fixes: 10c4bc6e3f
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1880
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1888
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1932>
This commit is contained in:
Jonas Ådahl 2021-07-16 17:06:05 +02:00
parent 8a4aa92a54
commit 58f053d437

View File

@ -197,7 +197,7 @@ init_dumb_buffer (MetaDrmBufferDumb *buffer_dumb,
buffer_dumb->stride_bytes = create_arg.pitch;
buffer_dumb->drm_format = format;
return FALSE;
return TRUE;
err_mmap:
err_map_dumb: