summaryrefslogtreecommitdiff
path: root/xc/lib/GL/mesa
diff options
context:
space:
mode:
authorkem <kem>2001-01-11 16:20:37 +0000
committerkem <kem>2001-01-11 16:20:37 +0000
commit1370184793a86cfd214fffa6d6c854d84acd8036 (patch)
tree3153c3cfbafd3cc79ace27e404b2f8b1ef5e67f9 /xc/lib/GL/mesa
parenta19c1a93b53cbf37bc6ade7485fffd1c5337aeb1 (diff)
- Re-enable freeing resources when the screen is destroyed
Diffstat (limited to 'xc/lib/GL/mesa')
-rw-r--r--xc/lib/GL/mesa/dri/dri_mesa.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xc/lib/GL/mesa/dri/dri_mesa.c b/xc/lib/GL/mesa/dri/dri_mesa.c
index 91e1508a0..0257ef5b5 100644
--- a/xc/lib/GL/mesa/dri/dri_mesa.c
+++ b/xc/lib/GL/mesa/dri/dri_mesa.c
@@ -937,10 +937,16 @@ static void driMesaDestroyScreen(Display *dpy, int scrn, void *private)
__DRIscreenPrivate *psp = (__DRIscreenPrivate *)private;
if (psp) {
+#if 0
+ /*
+ ** NOT_DONE: For the same reason as that listed below, we cannot
+ ** call the X server here to destroy the dummy context.
+ */
if (psp->dummyContextPriv.driScreenPriv) {
(void)XF86DRIDestroyContext(dpy, scrn,
psp->dummyContextPriv.contextID);
}
+#endif
if (psp->MesaAPI.ResetDriver)
(*psp->MesaAPI.ResetDriver)(psp);
while (--psp->numVisuals >= 0) {