diff options
Diffstat (limited to 'src/glx/dri_glx.c')
-rw-r--r-- | src/glx/dri_glx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c index 43a2aa495a..42b263c637 100644 --- a/src/glx/dri_glx.c +++ b/src/glx/dri_glx.c @@ -509,8 +509,6 @@ dri_destroy_context(struct glx_context * context) if (context->extensions) XFree((char *) context->extensions); - GarbageCollectDRIDrawables(context->psc); - (*psc->core->destroyContext) (pcp->driContext); XF86DRIDestroyContext(psc->base.dpy, psc->base.scr, pcp->hwContextID); @@ -545,6 +543,8 @@ dri_unbind_context(struct glx_context *context, struct glx_context *new) struct dri_screen *psc = (struct dri_screen *) pcp->base.psc; (*psc->core->unbindContext) (pcp->driContext); + + driReleaseDrawables(&pcp->base); } static const struct glx_context_vtable dri_context_vtable = { |