mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
8a4aa92a54
commit
58f053d437
@ -197,7 +197,7 @@ init_dumb_buffer (MetaDrmBufferDumb *buffer_dumb,
|
|||||||
buffer_dumb->stride_bytes = create_arg.pitch;
|
buffer_dumb->stride_bytes = create_arg.pitch;
|
||||||
buffer_dumb->drm_format = format;
|
buffer_dumb->drm_format = format;
|
||||||
|
|
||||||
return FALSE;
|
return TRUE;
|
||||||
|
|
||||||
err_mmap:
|
err_mmap:
|
||||||
err_map_dumb:
|
err_map_dumb:
|
||||||
|
Loading…
Reference in New Issue
Block a user