GLX/DRI resource management

José Fonseca jrfonseca at
Tue Sep 25 15:52:27 PDT 2007

On 9/25/07, Michel Dänzer <michel at> wrote:
> > I'm updating Glucose to catch up with your change to xserver to make
> > sure DRI drawables are cleaned up when client dies
> > (4abd00dab7e648dab8172f6009371e4e63d0c521), where you pass the GLX
> > client  in the global __pGlxClient variable. The problem is that
> > when glucose creates drawables there is no GLX client (or the client
> > is the X server itself, if you prefer), so __pGlxClient is null or
> > junk.
> >
> > I'm wondering what's the best way to do it:
> > a) Create a ClientPtr for X server.
> There already is one, called serverClient. If that works for glucose,
> it's probably the best solution.

Thanks for the tip Michel. I'm experiencing some (likely unrelated)
crashes so until X shutsdown normally I can't tell for sure whether it
works or not. But using serverClient
has at least allowed me to progress past the initial crash.


More information about the xorg mailing list