From 9106fae181d12b653921daf3f553189c16b6e3f2 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Tue, 7 Sep 2010 11:36:07 +0100 Subject: [PATCH] indirect_unbind_context: Only clear the stored context tag when the context has been unbound Only clear the stored context tag when the context has been unbound, as if we don't unbind it, it's still current on the server, and we will need that tag later when we make another context current... Signed-off-by: Jon TURNEY --- src/glx/indirect_glx.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/glx/indirect_glx.c b/src/glx/indirect_glx.c index f059840..eadafc0 100644 --- a/src/glx/indirect_glx.c +++ b/src/glx/indirect_glx.c @@ -171,9 +171,11 @@ indirect_unbind_context(struct glx_context *gc, struct glx_context *new) * to send a request to the dpy to unbind the previous context. */ if (!new || new->isDirect || new->psc->dpy != dpy) - SendMakeCurrentRequest(dpy, opcode, None, - gc->currentContextTag, None, None, &reply); - gc->currentContextTag = 0; + { + SendMakeCurrentRequest(dpy, opcode, None, + gc->currentContextTag, None, None, &reply); + gc->currentContextTag = 0; + } } static void -- 1.7.1