Mesa (master): egl/wayland: Return -1 from get_back_bo to indicate error
Kristian Høgsberg
krh at kemper.freedesktop.org
Tue Dec 10 00:15:14 UTC 2013
Module: Mesa
Branch: master
Commit: 4ed055b4a6c9e18c0bb9b6c66ef2d04b78a5dcff
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ed055b4a6c9e18c0bb9b6c66ef2d04b78a5dcff
Author: Kristian Høgsberg <krh at bitplanet.net>
Date: Mon Dec 9 16:13:35 2013 -0800
egl/wayland: Return -1 from get_back_bo to indicate error
A return value of -1 indicate failure to allocate the back buffer and
means we don't segfault on the way out.
---
src/egl/drivers/dri2/platform_wayland.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index e24ad9d..5c8440d 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -278,7 +278,7 @@ get_back_bo(struct dri2_egl_surface *dri2_surf)
while (dri2_surf->throttle_callback != NULL)
if (wl_display_dispatch_queue(dri2_dpy->wl_dpy,
dri2_dpy->wl_queue) == -1)
- return EGL_FALSE;
+ return -1;
if (dri2_surf->back == NULL) {
for (i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++) {
More information about the mesa-commit
mailing list