https://bugs.freedesktop.org/show_bug.cgi?id=106442

--- Comment #11 from Chris Wilson <ch...@chris-wilson.co.uk> ---
glamor_fds_from_pixmap is returning -1 on error, proc_dri3_buffers_from_pixmap
expects 0 on error.

diff --git a/dri3/dri3_request.c b/dri3/dri3_request.c
index e34bebedb..79e3c8e2c 100644
--- a/dri3/dri3_request.c
+++ b/dri3/dri3_request.c
@@ -520,7 +520,7 @@ proc_dri3_buffers_from_pixmap(ClientPtr client)
     }

     num_fds = dri3_fds_from_pixmap(pixmap, fds, strides, offsets, &modifier);
-    if (num_fds == 0)
+    if (num_fds <= 0)
         return BadPixmap;

     rep.nfd = num_fds;

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
wayland-bugs mailing list
wayland-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to