summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/platform_android.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2016-05-01 12:42:55 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-05-23 12:07:47 +0100
commitd67e757d11342f9cfa566f85c3961259bc4d6870 (patch)
tree31f311a9a116b319230985d54e2165ddb2e85d20 /src/egl/drivers/dri2/platform_android.c
parent9b3c7481c61098be1f780f91d8e06dc55afd5b0b (diff)
downloadexternal_mesa3d-d67e757d11342f9cfa566f85c3961259bc4d6870.zip
external_mesa3d-d67e757d11342f9cfa566f85c3961259bc4d6870.tar.gz
external_mesa3d-d67e757d11342f9cfa566f85c3961259bc4d6870.tar.bz2
egl: android: remove explicit glFlush call
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>
Diffstat (limited to 'src/egl/drivers/dri2/platform_android.c')
-rw-r--r--src/egl/drivers/dri2/platform_android.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index fc9cd68..25d02f5 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)