diff options
author | Nicolas Boichat <[email protected]> | 2017-05-05 10:43:50 +0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-05-08 11:24:04 +0100 |
commit | cd284ce928b5c99050004a46a02ad70fe376d69e (patch) | |
tree | 579bc93ed2edfe148618bd296f15cd127b9aa9bb | |
parent | e972294b8e99f9b7c9be8e4adee556ca3e09c9dd (diff) |
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: e5eace58684 ("egl/android: Mark surface as lost when dequeueBuffer fails")
Fixes: 0212db35040 ("egl/android: Cancel any outstanding ANativeBuffer in surface destructor")
Reviewed-by: Chad Versace <[email protected]>
(cherry picked from commit 63b12b0c77759a0244416cd1406c2bf50e7c01ec)
-rw-r--r-- | src/egl/drivers/dri2/platform_android.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index 6e6fd88fb49..a963f4fc739 100644 --- a/src/egl/drivers/dri2/platform_android.c +++ b/src/egl/drivers/dri2/platform_android.c @@ -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; } |