mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
glx: Hold on to drawables if we're just switching to another context
https://bugs.freedesktop.org/show_bug.cgi?id=30234
This commit is contained in:
parent
bb26272bea
commit
441344ba7e
1 changed files with 4 additions and 1 deletions
|
|
@ -118,6 +118,8 @@ dri2_destroy_context(struct glx_context *context)
|
|||
struct dri2_context *pcp = (struct dri2_context *) context;
|
||||
struct dri2_screen *psc = (struct dri2_screen *) context->psc;
|
||||
|
||||
driReleaseDrawables(&pcp->base);
|
||||
|
||||
if (context->xid)
|
||||
glx_send_destroy_context(psc->base.dpy, context->xid);
|
||||
|
||||
|
|
@ -158,7 +160,8 @@ dri2_unbind_context(struct glx_context *context, struct glx_context *new)
|
|||
|
||||
(*psc->core->unbindContext) (pcp->driContext);
|
||||
|
||||
driReleaseDrawables(&pcp->base);
|
||||
if (context == new)
|
||||
driReleaseDrawables(&pcp->base);
|
||||
}
|
||||
|
||||
static struct glx_context *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue