glx: Send DestroyContext protocol at the correct times
[mesa.git] / src / glx / indirect_glx.c
index 7b542dd159c6696dde58b6cee43f7a9f82d994f6..17689d45f2304801eab5ddc5ac788902b2b71646 100644 (file)
@@ -43,9 +43,6 @@ static struct _glapi_table *IndirectAPI = NULL;
 static void
 indirect_destroy_context(struct glx_context *gc)
 {
-   if (!gc->imported && gc->xid)
-      glx_send_destroy_context(gc->psc->dpy, gc->xid);
-
    __glXFreeVertexArrayState(gc);
 
    if (gc->vendor)