diff options
author | Brian Paul <[email protected]> | 2012-01-10 19:24:41 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-11 12:43:45 -0700 |
commit | ecbdb173bbe3e37b4cbc6b08a5ba5a70236a0d1d (patch) | |
tree | d95950d3716abee1c7057122cd4ac8d3383274d5 /src/mesa/drivers/x11 | |
parent | b424bf69dfd78c64e065b8ba59d9b40a8f4fecd6 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r-- | 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 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); |