diff options
author | Brian Paul <[email protected]> | 2011-11-05 10:48:18 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-11-07 14:25:47 -0700 |
commit | 32c3957991bd0e1df744d866943a8c47b2757c9e (patch) | |
tree | 1ca3cb3436a39690fcd07fbb9825bc50d458748b /src/mesa/drivers/x11/xm_dd.c | |
parent | 68c3d21b6857ec39f0849867355b736191823479 (diff) |
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.
Diffstat (limited to 'src/mesa/drivers/x11/xm_dd.c')
-rw-r--r-- | src/mesa/drivers/x11/xm_dd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c index a59ffd3755a..c896716c0bc 100644 --- a/src/mesa/drivers/x11/xm_dd.c +++ b/src/mesa/drivers/x11/xm_dd.c @@ -1077,6 +1077,9 @@ xmesa_init_driver_functions( XMesaVisual xmvisual, } } + driver->MapRenderbuffer = xmesa_MapRenderbuffer; + driver->UnmapRenderbuffer = xmesa_UnmapRenderbuffer; + #if ENABLE_EXT_texure_compression_s3tc driver->ChooseTextureFormat = choose_tex_format; #else |