From: Chris Forbes Date: Wed, 21 May 2014 08:03:50 +0000 (+1200) Subject: mesa: Make CompressedTexSubImage errors more consistent X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f63559c931265c1d4e244551a3fed9c5ebd07c8;p=mesa.git mesa: Make CompressedTexSubImage errors more consistent Signed-off-by: Chris Forbes Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 845ba80143f..5058b394e44 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -3844,7 +3844,7 @@ compressed_subtexture_error_check(struct gl_context *ctx, GLint dims, } if (!targetOK) { - _mesa_error(ctx, GL_INVALID_ENUM, "glCompressedTexImage%uD(target)", + _mesa_error(ctx, GL_INVALID_ENUM, "glCompressedTexSubImage%uD(target)", dims); return GL_TRUE; } @@ -3857,14 +3857,14 @@ compressed_subtexture_error_check(struct gl_context *ctx, GLint dims, } if (level < 0 || level >= _mesa_max_texture_levels(ctx, target)) { - _mesa_error(ctx, GL_INVALID_VALUE, "glCompressedTexImage%uD(level=%d)", + _mesa_error(ctx, GL_INVALID_VALUE, "glCompressedTexSubImage%uD(level=%d)", dims, level); return GL_TRUE; } expectedSize = compressed_tex_size(width, height, depth, format); if (expectedSize != imageSize) { - _mesa_error(ctx, GL_INVALID_VALUE, "glCompressedTexImage%uD(size=%d)", + _mesa_error(ctx, GL_INVALID_VALUE, "glCompressedTexSubImage%uD(size=%d)", dims, imageSize); return GL_TRUE; }