diff options
author | Kristian Høgsberg <[email protected]> | 2010-07-23 22:05:21 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-07-23 22:05:53 -0400 |
commit | d77bb8e059ecfed9b714301fc31b093c6026c7bc (patch) | |
tree | bf201f09f5f253cb5adeea6e6df581bb9b89f251 /src/glx/drisw_glx.c | |
parent | 6739d52fdced53a566188215d204ffef1e85a5e6 (diff) |
glx: Don't destroy context with XID 0
We use XID 0 to indicate the context has already been destroyed, but it's
currently bound.
Diffstat (limited to 'src/glx/drisw_glx.c')
-rw-r--r-- | src/glx/drisw_glx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 852e56e484e..11f88e96703 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -245,7 +245,8 @@ drisw_destroy_context(__GLXcontext *context) struct drisw_context *pcp = (struct drisw_context *) context; struct drisw_screen *psc = (struct drisw_screen *) context->psc; - glx_send_destroy_context(psc->base.dpy, context->xid); + if (context->xid) + glx_send_destroy_context(psc->base.dpy, context->xid); if (context->extensions) XFree((char *) context->extensions); |