summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_validate.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2011-08-21 16:59:30 -0700
committerIan Romanick <ian.d.romanick@intel.com>2011-08-23 14:52:08 -0700
commit56f0c00f125ee75caeadc1c9e8cab8a488635e5e (patch)
tree0c3a7edb449a8e862ff92c3128b8f1ae4d678580 /src/mesa/main/api_validate.c
parent0457655035cda3678208cd2850fa75a364a59ca9 (diff)
downloadexternal_mesa3d-56f0c00f125ee75caeadc1c9e8cab8a488635e5e.zip
external_mesa3d-56f0c00f125ee75caeadc1c9e8cab8a488635e5e.tar.gz
external_mesa3d-56f0c00f125ee75caeadc1c9e8cab8a488635e5e.tar.bz2
mesa: Remove target parameter from dd_function_table::UnmapBuffer
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> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r--src/mesa/main/api_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index 2981d42..08faf9e 100644
--- a/src/mesa/main/api_validate.c
+++ b/src/mesa/main/api_validate.c
@@ -89,7 +89,7 @@ _mesa_max_buffer_index(struct gl_context *ctx, GLuint count, GLenum type,
}
if (map) {
- ctx->Driver.UnmapBuffer(ctx, GL_ELEMENT_ARRAY_BUFFER_ARB, elementBuf);
+ ctx->Driver.UnmapBuffer(ctx, elementBuf);
}
return max;