From 16887d042a917fa4773e4d853f50051b54e9948c Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Fri, 27 Aug 2010 12:40:11 -0400 Subject: glx: Drop broken drawable garbage collection Doesn't work for pixmaps, was looking up the GLX XID and was never thread safe. Instead, just destroy the client side structures when the drawable is no long current for a context. --- src/glx/indirect_glx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glx/indirect_glx.c') diff --git a/src/glx/indirect_glx.c b/src/glx/indirect_glx.c index 61ceed3d43..1870edee37 100644 --- a/src/glx/indirect_glx.c +++ b/src/glx/indirect_glx.c @@ -168,6 +168,9 @@ indirect_unbind_context(struct glx_context *gc, struct glx_context *new) int opcode = __glXSetupForCommand(dpy); xGLXMakeCurrentReply reply; + if (gc == new) + return; + /* We are either switching to no context, away from a indirect * context to a direct context or from one dpy to another and have * to send a request to the dpy to unbind the previous context. -- cgit v1.2.3