egl: android: remove explicit glFlush call
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 1 May 2016 11:42:55 +0000 (12:42 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 May 2016 11:07:47 +0000 (12:07 +0100)
The DRI flush extension should already do the same thing.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Tested-by: Rob Herring <robh@kernel.org>
src/egl/drivers/dri2/platform_android.c

index fc9cd683d00d051d37d8925ab3a24f830089ada2..25d02f5f58b1d64190ed6951c3200c5cd7755781 100644 (file)
@@ -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)