From: Brian Paul Date: Wed, 11 Jan 2012 02:24:41 +0000 (-0700) Subject: xlib: call register_with_display() in Fake_glXChooseFBConfig() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecbdb173bbe3e37b4cbc6b08a5ba5a70236a0d1d;p=mesa.git xlib: call register_with_display() in Fake_glXChooseFBConfig() as we do in Fake_glXChooseVisual(). This registers the MesaGLX extension on the display so we can clean up buffers, etc. when the display connection is closed. Fixes a bug reported by Wayne E. Robertz. NOTE: This is a candidate for the 7.11 branch. Reviewed-by: Adam Jackson --- diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 445d43b6539..916296d1972 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -1983,6 +1983,9 @@ Fake_glXChooseFBConfig( Display *dpy, int screen, { XMesaVisual xmvis; + /* register ourselves as an extension on this display */ + register_with_display(dpy); + if (!attribList || !attribList[0]) { /* return list of all configs (per GLX_SGIX_fbconfig spec) */ return Fake_glXGetFBConfigs(dpy, screen, nitems);