[PATCH xserver 5/8] xquartz/glx: Error out for MakeContextCurrent(draw != read)

Matt Turner mattst88 at gmail.com
Mon Mar 21 21:12:18 UTC 2016


On Mon, Mar 21, 2016 at 1:29 PM, Adam Jackson <ajax at redhat.com> wrote:
> CGL doesn't have a way to express this directly, unlike EGL WGL and GLX.
> It might be implementable, but it's never actually worked, and it's a
> fairly niche feature so we're better off throwing an error if someone
> attempts it.
>
> Signed-off-by: Adam Jackson <ajax at redhat.com>
> ---
>  hw/xquartz/GL/indirect.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/hw/xquartz/GL/indirect.c b/hw/xquartz/GL/indirect.c
> index 54c9073..c0648c4 100644
> --- a/hw/xquartz/GL/indirect.c
> +++ b/hw/xquartz/GL/indirect.c
> @@ -387,6 +387,9 @@ __glXAquaContextMakeCurrent(__GLXcontext *baseContext)
>
>      GLAQUA_DEBUG_MSG("glAquaMakeCurrent (ctx 0x%p)\n", baseContext);
>
> +    if (context->base.drawPriv !+ context->base.readPriv)

I'm not sure how that parses. Should be !=


More information about the xorg-devel mailing list