glx: Clean up some funny business from context bind/unbind

We always fully unbind the old context before binding the new one, so
there's no point in passing both contexts to both the unbind and then
the bind.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20549>
This commit is contained in:
Adam Jackson
2023-01-03 18:33:34 -05:00
committed by Marge Bot
parent f0eed00010
commit cf9debb639
8 changed files with 20 additions and 47 deletions

View File

@@ -157,8 +157,7 @@ dri3_destroy_context(struct glx_context *context)
}
static Bool
dri3_bind_context(struct glx_context *context, struct glx_context *old,
GLXDrawable draw, GLXDrawable read)
dri3_bind_context(struct glx_context *context, GLXDrawable draw, GLXDrawable read)
{
struct dri3_screen *psc = (struct dri3_screen *) context->psc;
struct dri3_drawable *pdraw, *pread;
@@ -191,7 +190,7 @@ dri3_bind_context(struct glx_context *context, struct glx_context *old,
}
static void
dri3_unbind_context(struct glx_context *context, struct glx_context *new)
dri3_unbind_context(struct glx_context *context)
{
struct dri3_screen *psc = (struct dri3_screen *) context->psc;