intel: Silence "warning: unused parameter ‘target’"

The GLenum target parameter was not used in intel_copy_texsubimage, so
remove it.  Also remove the GLenum internalFormat parameter.  Each
caller just copied this out of the intel_texture_image that is already
passed to intel_copy_texsubimage.

Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Ian Romanick
2011-08-26 10:03:26 -07:00
parent 36a91e45f7
commit bd817215c8
3 changed files with 5 additions and 13 deletions

View File

@@ -903,11 +903,9 @@ intel_blit_framebuffer_copy_tex_sub_image(struct gl_context *ctx,
struct gl_texture_image *texImage =
_mesa_select_tex_image(ctx, texObj, target, dstLevel);
GLenum internalFormat = texImage->InternalFormat;
if (intel_copy_texsubimage(intel_context(ctx), target,
if (intel_copy_texsubimage(intel_context(ctx),
intel_texture_image(texImage),
internalFormat,
dstX0, dstY0,
srcX0, srcY0,
srcX1 - srcX0, /* width */