mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 03:18:08 +02:00
egl/android: Set EGLSurface.Lost to EGL_TRUE/EGL_FALSE
Lost is an EGLBoolean, so we should assign it to EGL_TRUE/EGL_FALSE, not true/false. Fixes:e5eace5868("egl/android: Mark surface as lost when dequeueBuffer fails") Fixes:0212db3504("egl/android: Cancel any outstanding ANativeBuffer in surface destructor") Reviewed-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
parent
98cd512089
commit
63b12b0c77
1 changed files with 2 additions and 2 deletions
|
|
@ -271,7 +271,7 @@ droid_window_cancel_buffer(struct dri2_egl_surface *dri2_surf)
|
|||
ret = dri2_surf->window->cancelBuffer(dri2_surf->window, dri2_surf->buffer, -1);
|
||||
if (ret < 0) {
|
||||
_eglLog(_EGL_WARNING, "ANativeWindow::cancelBuffer failed");
|
||||
dri2_surf->base.Lost = true;
|
||||
dri2_surf->base.Lost = EGL_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -440,7 +440,7 @@ update_buffers(struct dri2_egl_surface *dri2_surf)
|
|||
/* try to dequeue the next back buffer */
|
||||
if (!dri2_surf->buffer && !droid_window_dequeue_buffer(dri2_surf)) {
|
||||
_eglLog(_EGL_WARNING, "Could not dequeue buffer from native window");
|
||||
dri2_surf->base.Lost = true;
|
||||
dri2_surf->base.Lost = EGL_TRUE;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue