mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
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.
This commit is contained in:
parent
0b7058c46a
commit
4ed055b4a6
1 changed files with 1 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue