Lines Matching defs:read
738 _eglCheckMakeCurrent(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read)
745 if (draw || read)
752 && (draw == NULL || read == NULL))
758 * "If ctx is current to some other thread, or if either draw or read are
773 if (read && read->CurrentContext && read->CurrentContext != ctx) {
774 if (read->CurrentContext->Binding != t)
782 (read && read->Config != ctx->Config))
789 /* The extension doesn't permit binding draw and read buffers with
791 if (draw && read && draw->Config != read->Config)
809 _eglBindContext(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read,
817 if (!_eglCheckMakeCurrent(ctx, draw, read))
823 _eglGetSurface(read);
849 if (read)
850 read->CurrentContext = ctx;
853 ctx->ReadSurface = read;