From ecbdb173bbe3e37b4cbc6b08a5ba5a70236a0d1d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 10 Jan 2012 19:24:41 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/x11/fakeglx.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2