diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2011-08-21 17:07:56 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2011-08-23 14:52:09 -0700 |
commit | 12d924c5ae14a1c6a05a3dcae29b77e7668e227d (patch) | |
tree | cd2ae20d8e2574be4a42d15cfc2eb3a4669eef4c /src/mesa/main/dlist.c | |
parent | 56f0c00f125ee75caeadc1c9e8cab8a488635e5e (diff) | |
download | external_mesa3d-12d924c5ae14a1c6a05a3dcae29b77e7668e227d.zip external_mesa3d-12d924c5ae14a1c6a05a3dcae29b77e7668e227d.tar.gz external_mesa3d-12d924c5ae14a1c6a05a3dcae29b77e7668e227d.tar.bz2 |
mesa: Remove target parameter from dd_function_table::MapBuffer
No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/main/dlist.c')
-rw-r--r-- | src/mesa/main/dlist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 3e54af2..a135810 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -894,8 +894,7 @@ unpack_image(struct gl_context *ctx, GLuint dimensions, GLvoid *image; map = (GLubyte *) - ctx->Driver.MapBuffer(ctx, GL_PIXEL_UNPACK_BUFFER_EXT, - GL_READ_ONLY_ARB, unpack->BufferObj); + ctx->Driver.MapBuffer(ctx, GL_READ_ONLY_ARB, unpack->BufferObj); if (!map) { /* unable to map src buffer! */ _mesa_error(ctx, GL_INVALID_OPERATION, "unable to map PBO"); |