Use XAddExtension() to register an XCloseDisplay() callback function.
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 30 Aug 2006 21:17:51 +0000 (21:17 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 30 Aug 2006 21:17:51 +0000 (21:17 +0000)
commit6c06ce281aa7a7e20eab1934f573bc5c673d41cb
tree497ad65b4f600466db26ed9dab093ffd76764177
parent12a5f812fcf00708ea2b6501e7adcdd5e7a47fac
Use XAddExtension() to register an XCloseDisplay() callback function.
When the callback is called, free all Mesa's private visual and buffer
data structures which are tied to the display.
Fixes problems reported by Kitware.
src/mesa/drivers/x11/fakeglx.c
src/mesa/drivers/x11/glxheader.h
src/mesa/drivers/x11/xm_api.c
src/mesa/drivers/x11/xmesaP.h