aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/swrastwgl_dri
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-01-30 11:17:14 +0100
committermarha <marha@users.sourceforge.net>2012-01-30 11:17:14 +0100
commitc69f5d9bd34d3fd3738c000f5d91ceb26770f7e5 (patch)
tree3cee6b4fc9ac4c54ac0068c187edf0dcdabfb515 /xorg-server/hw/xwin/swrastwgl_dri
parent9126bebe40113c6bbe0af98d4dd5fc607b85894e (diff)
downloadvcxsrv-c69f5d9bd34d3fd3738c000f5d91ceb26770f7e5.tar.gz
vcxsrv-c69f5d9bd34d3fd3738c000f5d91ceb26770f7e5.tar.bz2
vcxsrv-c69f5d9bd34d3fd3738c000f5d91ceb26770f7e5.zip
call glapi_set_dispatch to NULL when context is not current anymore
Diffstat (limited to 'xorg-server/hw/xwin/swrastwgl_dri')
-rw-r--r--xorg-server/hw/xwin/swrastwgl_dri/swrastwgl_dri.c2
1 files changed, 2 insertions, 0 deletions
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;
}