Lines Matching refs:read
734 _eglCheckMakeCurrent(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read)
744 if (draw || read)
751 && (draw == NULL || read == NULL))
757 * "If ctx is current to some other thread, or if either draw or read are
772 if (read && read->CurrentContext && read->CurrentContext != ctx) {
773 if (read->CurrentContext->Binding != t)
781 (read && read->Config != ctx->Config))
788 /* The extension doesn't permit binding draw and read buffers with
790 if (draw && read && draw->Config != read->Config)
808 _eglBindContext(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read,
816 if (!_eglCheckMakeCurrent(ctx, draw, read))
822 _eglGetSurface(read);
848 if (read)
849 read->CurrentContext = ctx;
852 ctx->ReadSurface = read;