From: Tapani Pälli Date: Tue, 7 Oct 2014 07:56:49 +0000 (+0300) Subject: mesa: fix error reported on gTexSubImage2D when level not valid X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac557b4c121e4ea42ebe7f222f1f40bc56fe3aae;p=mesa.git mesa: fix error reported on gTexSubImage2D when level not valid Signed-off-by: Tapani Pälli Reviewed-by: Juha-Pekka Heikkila --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 647d28ab3d1..c0298af8ea6 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -2449,7 +2449,7 @@ texsubimage_error_check(struct gl_context *ctx, GLuint dimensions, /* level check */ if (level < 0 || level >= _mesa_max_texture_levels(ctx, target)) { - _mesa_error(ctx, GL_INVALID_ENUM, "glTexSubImage%uD(level=%d)", + _mesa_error(ctx, GL_INVALID_VALUE, "glTexSubImage%uD(level=%d)", dimensions, level); return GL_TRUE; }