diff options
author | Kristian Høgsberg <[email protected]> | 2012-12-13 23:32:51 -0500 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2013-01-04 11:20:12 -0500 |
commit | 48ac6d7e97b93258bc784f46bd5f875c70a4b3b9 (patch) | |
tree | 8f9b48961594e960fe43da2ee95bc694d3b8e13d /src/egl/drivers/dri2 | |
parent | b433e319b34df1930d46fcca534e475ed9e7dc3c (diff) |
egl/wayland: Remove kooky flush code
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.
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 434986893b8..a8069ba13c5 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -546,7 +546,6 @@ dri2_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); - struct dri2_egl_driver *dri2_drv = dri2_egl_driver(drv); int ret = 0; while (dri2_surf->frame_callback && ret != -1) @@ -594,13 +593,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); |