xlib: implement renderbuffer mapping/unmapping
authorBrian Paul <brianp@vmware.com>
Sat, 5 Nov 2011 16:48:18 +0000 (10:48 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 7 Nov 2011 21:25:47 +0000 (14:25 -0700)
commit32c3957991bd0e1df744d866943a8c47b2757c9e
tree1ca3cb3436a39690fcd07fbb9825bc50d458748b
parent68c3d21b6857ec39f0849867355b736191823479
xlib: implement renderbuffer mapping/unmapping

This fixes the glReadPixels() regression for reading from the front/back
color buffers.

Note, we only allow one mapping of an XImage/Pixmap renderbuffer
at any time.  That might need to be revisited in the future.
src/mesa/drivers/x11/xm_api.c
src/mesa/drivers/x11/xm_buffer.c
src/mesa/drivers/x11/xm_dd.c
src/mesa/drivers/x11/xmesaP.h