From d67e757d11342f9cfa566f85c3961259bc4d6870 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 1 May 2016 12:42:55 +0100 Subject: [PATCH] egl: android: remove explicit glFlush call The DRI flush extension should already do the same thing. Signed-off-by: Emil Velikov Tested-by: Rob Herring --- src/egl/drivers/dri2/platform_android.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index fc9cd683d00..25d02f5f58b 100644 --- a/src/egl/drivers/dri2/platform_android.c +++ b/src/egl/drivers/dri2/platform_android.c @@ -432,12 +432,6 @@ droid_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw) if (dri2_surf->base.Type != EGL_WINDOW_BIT) return EGL_TRUE; - if (dri2_drv->glFlush) { - ctx = _eglGetCurrentContext(); - if (ctx && ctx->DrawSurface == &dri2_surf->base) - dri2_drv->glFlush(); - } - dri2_flush_drawable_for_swapbuffers(disp, draw); if (dri2_surf->buffer)