diff options
author | Michel Dänzer <[email protected]> | 2008-01-10 17:44:04 +0100 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2008-01-14 18:12:58 +0100 |
commit | c76efb96b405e43e3261d1dc9e8812fdb2cfbac8 (patch) | |
tree | 001828ee5bca72508f45deacfbb9f2318763ce99 /src/mesa/state_tracker/st_cb_drawpixels.c | |
parent | a511200e5f0c384e68258879bab76563d8e01f01 (diff) |
Remove mapping fields from struct pipe_surface.
It's now the responsibility of surface users to keep track of their mappings.
Diffstat (limited to 'src/mesa/state_tracker/st_cb_drawpixels.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_drawpixels.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c index 2db12c653b6..5ea2f08b8a3 100644 --- a/src/mesa/state_tracker/st_cb_drawpixels.c +++ b/src/mesa/state_tracker/st_cb_drawpixels.c @@ -1261,15 +1261,9 @@ st_CopyPixels(GLcontext *ctx, GLint srcx, GLint srcy, /* alternate path using get/put_tile() */ GLfloat *buf = (GLfloat *) malloc(width * height * 4 * sizeof(GLfloat)); - (void) pipe_surface_map(psRead); - (void) pipe_surface_map(psTex); - pipe->get_tile_rgba(pipe, psRead, srcx, srcy, width, height, buf); pipe->put_tile_rgba(pipe, psTex, 0, 0, width, height, buf); - pipe_surface_unmap(psRead); - pipe_surface_unmap(psTex); - free(buf); } |