Mesa (master): xlib: call register_with_display() in Fake_glXChooseFBConfig ()

Brian Paul brianp at
Wed Jan 11 11:44:12 PST 2012

Module: Mesa
Branch: master
Commit: ecbdb173bbe3e37b4cbc6b08a5ba5a70236a0d1d

Author: Brian Paul <brianp at>
Date:   Tue Jan 10 19:24:41 2012 -0700

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 <ajax at>


 src/mesa/drivers/x11/fakeglx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 445d43b..916296d 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);

More information about the mesa-commit mailing list