[Mesa-dev] [PATCH 1/3] xlib: call register_with_display() in Fake_glXChooseFBConfig()
Brian Paul
brian.e.paul at gmail.com
Tue Jan 10 18:46:38 PST 2012
From: Brian Paul <brianp at vmware.com>
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.
---
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);
--
1.7.1
More information about the mesa-dev
mailing list