xlib: call register_with_display() in Fake_glXChooseFBConfig()
authorBrian Paul <brianp@vmware.com>
Wed, 11 Jan 2012 02:24:41 +0000 (19:24 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 11 Jan 2012 19:43:45 +0000 (12:43 -0700)
commitecbdb173bbe3e37b4cbc6b08a5ba5a70236a0d1d
treed95950d3716abee1c7057122cd4ac8d3383274d5
parentb424bf69dfd78c64e065b8ba59d9b40a8f4fecd6
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@redhat.com>
src/mesa/drivers/x11/fakeglx.c