[Mesa-dev] [PATCH 8/8] egl/wayland: Remove kooky flush code

Kristian Høgsberg krh at bitplanet.net
Thu Dec 13 21:05:04 PST 2012


We used to have to jump through hoops to call glFlush at swap buffer time,
but the flush extension made that unnecessary a long time ago.
---
 src/egl/drivers/dri2/platform_wayland.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index 6f8f3b0..f599ad8 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -473,12 +473,6 @@ dri2_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw)
 
    wl_surface_commit(dri2_surf->wl_win->surface);
 
-   _EGLContext *ctx;
-   if (dri2_drv->glFlush) {
-      ctx = _eglGetCurrentContext();
-      if (ctx && ctx->DrawSurface == &dri2_surf->base)
-         dri2_drv->glFlush();
-   }
    (*dri2_dpy->flush->flush)(dri2_surf->dri_drawable);
    (*dri2_dpy->flush->invalidate)(dri2_surf->dri_drawable);
 
-- 
1.7.10.2



More information about the mesa-dev mailing list