it seems that if you use glXDestroyContext() to destroy the current context,
and then call glXWaitX(), Mesa will segfault.  glXWaitX() is supposed to
do nothing if there is no current context (although i admit that destroying
the current context is kind of dubious).

anyway, this patch seems to fix it:

*** Mesa-3.0-orig/src/X/xmesa1.c        Tue Aug 25 22:50:23 1998
--- Mesa-3.0/src/X/xmesa1.c     Tue Mar  2 23:58:48 1999
***************
*** 1448,1453 ****
--- 1448,1454 ----
     if (c->gl_ctx)
        gl_destroy_context( c->gl_ctx );
     free( c );
+    if (XMesa == c) XMesa = NULL;
  }


-- 
                                                       stephen f. white
                                                    [EMAIL PROTECTED]
                              http://www.csclub.uwaterloo.ca/u/sfwhite/
                      i'm not a complete idiot; some parts are missing.

Reply via email to