[Mesa-dev] [PATCH 02/11] mesa: Make CompressedTexSubImage errors more consistent
Ian Romanick
idr at freedesktop.org
Mon Jun 2 15:08:52 PDT 2014
This patch is
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
On 06/01/2014 11:29 PM, Chris Forbes wrote:
> Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
> ---
> src/mesa/main/teximage.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 845ba80..5058b39 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;
> }
>
More information about the mesa-dev
mailing list