glx: fix GLXChangeDrawableAttributesSGIX request
[mesa.git] / src / glx / indirect_glx.c
index 61ceed3d438081510dd94811e6a4ee889732a632..1870edee37137d243356a770018dce61abee9040 100644 (file)
@@ -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.