Lines Matching defs:read
738 _eglCheckMakeCurrent(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read)
748 if (draw || read)
755 && (draw == NULL || read == NULL))
761 * "If ctx is current to some other thread, or if either draw or read are
776 if (read && read->CurrentContext && read->CurrentContext != ctx) {
777 if (read->CurrentContext->Binding != t)
785 (read && read->Config != ctx->Config))
792 /* The extension doesn't permit binding draw and read buffers with
794 if (draw && read && draw->Config != read->Config)
812 _eglBindContext(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read,
820 if (!_eglCheckMakeCurrent(ctx, draw, read))
826 _eglGetSurface(read);
852 if (read)
853 read->CurrentContext = ctx;
856 ctx->ReadSurface = read;