diff options
author | Brian <[email protected]> | 2007-07-30 13:09:53 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-07-30 13:09:53 -0600 |
commit | f38d26fd83a2193c6cba9ce72d912f579b25f5fe (patch) | |
tree | a69df409c74e4563534d46b087aa2c79c593e481 | |
parent | 05ba76757b7349f0c3de2d9ce42c543fa7e931c2 (diff) |
added map/unmap() stubs
-rw-r--r-- | src/mesa/drivers/x11/xm_surface.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_surface.c b/src/mesa/drivers/x11/xm_surface.c index 58081a36a03..9d6db2b5ce6 100644 --- a/src/mesa/drivers/x11/xm_surface.c +++ b/src/mesa/drivers/x11/xm_surface.c @@ -69,6 +69,20 @@ xmesa_surface(struct softpipe_surface *sps) } +static void * +map_surface_buffer(struct pipe_buffer *pb, GLuint access_mode) +{ + /* no-op */ +} + + +static void +unmap_surface_buffer(struct pipe_buffer *pb) +{ + /* no-op */ +} + + /** * quad reading/writing * These functions are just wrappers around the existing renderbuffer @@ -199,6 +213,9 @@ create_surface(XMesaContext xmctx, struct xmesa_renderbuffer *xrb) xmsurf->sps.write_quad_ub = write_quad_ub; xmsurf->sps.write_mono_row_ub = write_mono_row_ub; + xmsurf->sps.surface.buffer.map = map_surface_buffer; + xmsurf->sps.surface.buffer.unmap = unmap_surface_buffer; + #if 0 if (xrb->ximage) { xmsurf->sps.surface.ptr = (GLubyte *) xrb->ximage->data; |