mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
dri: Unset current context and dispatch table when unbinding
Otherwise, when we switch to an indirect glx context and then back, it looks like we're still current. https://bugs.freedesktop.org/show_bug.cgi?id=29977#c7 Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
This commit is contained in:
parent
1a5b32ca01
commit
b4bb668020
4 changed files with 13 additions and 0 deletions
|
|
@ -873,6 +873,9 @@ intelDestroyContext(__DRIcontext * driContextPriv)
|
|||
GLboolean
|
||||
intelUnbindContext(__DRIcontext * driContextPriv)
|
||||
{
|
||||
/* Unset current context and dispath table */
|
||||
_mesa_make_current(NULL, NULL, NULL);
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -306,6 +306,9 @@ nouveau_context_make_current(__DRIcontext *dri_ctx, __DRIdrawable *dri_draw,
|
|||
GLboolean
|
||||
nouveau_context_unbind(__DRIcontext *dri_ctx)
|
||||
{
|
||||
/* Unset current context and dispath table */
|
||||
_mesa_make_current(NULL, NULL, NULL);
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -363,6 +363,9 @@ GLboolean radeonUnbindContext(__DRIcontext * driContextPriv)
|
|||
fprintf(stderr, "%s ctx %p\n", __FUNCTION__,
|
||||
radeon->glCtx);
|
||||
|
||||
/* Unset current context and dispath table */
|
||||
_mesa_make_current(NULL, NULL, NULL);
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -713,6 +713,10 @@ dri_unbind_context(__DRIcontext * cPriv)
|
|||
{
|
||||
TRACE;
|
||||
(void) cPriv;
|
||||
|
||||
/* Unset current context and dispath table */
|
||||
_mesa_make_current(NULL, NULL, NULL);
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue