Point __pGlxClient to serverClient when creating/destroying the root drawable.

This commit is contained in:
José Fonseca 2007-09-26 14:17:34 +00:00
parent 25363e5b83
commit dd474d95d0

View file

@ -122,6 +122,8 @@ glucoseCreateScreenResources(ScreenPtr pScreen)
PixmapPtr pPixmap = pScreen->GetScreenPixmap(pScreen);
xglScreenPtr xglScreenPriv = XGL_GET_SCREEN_PRIV (pScreen);
__pGlxClient = serverClient;
/* track root pixmap */
if (pPixmap)
{
@ -750,6 +752,8 @@ glucoseCloseScreen (int index,
{
GlucoseScreenPrivPtr pScreenPriv = GlucoseGetScreenPriv(pScreen);
__pGlxClient = serverClient;
pScreenPriv->rootContext->destroy(pScreenPriv->rootContext);
pScreenPriv->rootDrawable->destroy(pScreenPriv->rootDrawable);