aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan A. Suarez Romero <[email protected]>2017-06-01 09:48:54 +0200
committerJuan A. Suarez Romero <[email protected]>2017-06-01 10:09:43 +0200
commited38bcedfb942a6175a384d40bd437594d8eb86c (patch)
treeb91e4fd06c71ddd4ca60ab2eccb162bb62bebc3e
parent012c198bb73e14323c12a95e22d73de56e258ca2 (diff)
Revert "android: fix segfault within swap_buffers"
This reverts commit 4d4558411db166d2d66f8cec9cb581149dbe1597. See https://lists.freedesktop.org/archives/mesa-stable/2017-June/006408.html Signed-off-by: Juan A. Suarez Romero <[email protected]>
-rw-r--r--src/egl/drivers/dri2/platform_android.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index a963f4fc739..b7276997879 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -628,14 +628,6 @@ droid_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw)
if (dri2_surf->color_buffers[i].age > 0)
dri2_surf->color_buffers[i].age++;
}
-
- /* Make sure we have a back buffer in case we're swapping without
- * ever rendering. */
- if (get_back_bo(dri2_surf, 0) < 0) {
- _eglError(EGL_BAD_ALLOC, "dri2_swap_buffers");
- return EGL_FALSE;
- }
-
dri2_surf->back->age = 1;
dri2_flush_drawable_for_swapbuffers(disp, draw);