From c69f5d9bd34d3fd3738c000f5d91ceb26770f7e5 Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 30 Jan 2012 11:17:14 +0100 Subject: call glapi_set_dispatch to NULL when context is not current anymore --- xorg-server/hw/xwin/swrastwgl_dri/swrastwgl_dri.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xorg-server/hw/xwin/swrastwgl_dri') diff --git a/xorg-server/hw/xwin/swrastwgl_dri/swrastwgl_dri.c b/xorg-server/hw/xwin/swrastwgl_dri/swrastwgl_dri.c index 1be5e2caf..4c20c09ab 100644 --- a/xorg-server/hw/xwin/swrastwgl_dri/swrastwgl_dri.c +++ b/xorg-server/hw/xwin/swrastwgl_dri/swrastwgl_dri.c @@ -1053,6 +1053,7 @@ static int driBindContext(__DRIcontext *pcp, __DRIdrawable *pdp, __DRIdrawable * wglResolveExtensionProcs(); } current_pcp=pcp; + _glapi_set_dispatch(pcp->Dispatch); } return GL_TRUE; @@ -1110,6 +1111,7 @@ static int driUnbindContext(__DRIcontext *pcp) pcp->driDrawablePriv = NULL; pcp->driReadablePriv = NULL; + _glapi_set_dispatch(NULL); return GL_TRUE; } -- cgit v1.2.3