Lines Matching defs:read
128 EGLSurface read;
1698 c->read = 0;
1715 EGLSurface read, EGLContext ctx)
1727 if (read && read!=draw) {
1728 egl_surface_t* s = (egl_surface_t*)read;
1733 // TODO: check that read is compatible with the context
1738 if ((read == EGL_NO_SURFACE && draw == EGL_NO_SURFACE) && (ctx != EGL_NO_CONTEXT))
1741 if ((read != EGL_NO_SURFACE || draw != EGL_NO_SURFACE) && (ctx == EGL_NO_CONTEXT))
1750 egl_surface_t* r = (egl_surface_t*)read;
1763 egl_surface_t* r = (egl_surface_t*)read;
1772 if (c->read) {
1773 // FIXME: unlock/disconnect the read surface too
1777 c->read = read;
1799 // FIXME: lock/connect the read surface too
1809 egl_surface_t* r = (egl_surface_t*)c->read;
1818 c->read = 0;
1820 // FIXME: unlock/disconnect the read surface too
1839 // eglGetCurrentSurface returns the read or draw surface attached
1846 return c->read;
1906 // if this surface is also the read surface of the context
1907 // it is bound to, make sure to update the read buffer as well.
1910 if (c->read == draw) {