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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user