[mutter] drm-buffer/dumb: Return TRUE when init succeeded
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] drm-buffer/dumb: Return TRUE when init succeeded
- Date: Fri, 16 Jul 2021 15:51:36 +0000 (UTC)
commit 58f053d4374f6c1f7001ccdacebf8dd300917f47
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Jul 16 17:06:05 2021 +0200
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: 10c4bc6e3f0230e587190bcd73f211dd5056b9ca
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>
src/backends/native/meta-drm-buffer-dumb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/native/meta-drm-buffer-dumb.c b/src/backends/native/meta-drm-buffer-dumb.c
index 2df48aa5d9..d2fcad2f03 100644
--- a/src/backends/native/meta-drm-buffer-dumb.c
+++ b/src/backends/native/meta-drm-buffer-dumb.c
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]