diff options
author | Chia-I Wu <[email protected]> | 2010-01-26 17:13:51 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-01-26 18:46:05 +0800 |
commit | a1717970e78d897f527273278bf1346cc86a5741 (patch) | |
tree | 18c345a6554fd8c6415ef60a2fde586c6bed777a /src/egl/drivers | |
parent | 11cf3cb2c463cf8af8a7e63eb9521979bfd303f8 (diff) |
egl: Remove _eglGetCurrentSurface and _eglGetCurrentDisplay.
They have little use in drivers since drivers need to work for multiple
current contexts.
Diffstat (limited to 'src/egl/drivers')
-rw-r--r-- | src/egl/drivers/xdri/egl_xdri.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/egl/drivers/xdri/egl_xdri.c b/src/egl/drivers/xdri/egl_xdri.c index df251d908b9..e13d884e715 100644 --- a/src/egl/drivers/xdri/egl_xdri.c +++ b/src/egl/drivers/xdri/egl_xdri.c @@ -574,8 +574,7 @@ xdri_eglSwapBuffers(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *draw) struct xdri_egl_surface *xdri_surf = lookup_surface(draw); /* swapBuffers does not flush commands */ - if (draw == _eglGetCurrentSurface(EGL_DRAW) && - xdri_driver->FlushCurrentContext) + if (draw->Binding && xdri_driver->FlushCurrentContext) xdri_driver->FlushCurrentContext(); xdri_dpy->psc->driScreen->swapBuffers(xdri_surf->driDrawable, 0, 0, 0); |